From 1e2632f41237b476289872fb1431fa04a3b55530 Mon Sep 17 00:00:00 2001 From: Alexander invntrm Mextner Date: Wed, 5 Jul 2017 21:05:42 +0300 Subject: [PATCH] prevent transition to editing state from loading state on click --- src/RIEStatefulBase.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/RIEStatefulBase.js b/src/RIEStatefulBase.js index c2c8ce4..e9ffc78 100644 --- a/src/RIEStatefulBase.js +++ b/src/RIEStatefulBase.js @@ -93,6 +93,7 @@ export default class RIEStatefulBase extends RIEBase { elementClick = (event) => { debug(`elementClick(${event})`) + if (this.state.loading) return; this.startEditing(); event.target.element.focus(); };