File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
6
6
## To Be Released
7
7
8
+ ### 2.0.2
9
+
10
+ - button not working while it's in the same container with editor [ #1139 ] ( https://github.com/draft-js-plugins/draft-js-plugins/issues/1139 )
11
+
8
12
### Fixed
9
13
10
14
- Fixed an issue during initialization [ #740 ] ( https://github.com/draft-js-plugins/draft-js-plugins/pull/740 ) . Thanks to @terryoy
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ class RedoButton extends Component {
10
10
theme : PropTypes . any ,
11
11
} ;
12
12
13
- onClick = ( ) => {
13
+ onClick = ( event ) => {
14
+ event . stopPropagation ( ) ;
14
15
this . props . store . setEditorState ( EditorState . redo ( this . props . store . getEditorState ( ) ) ) ;
15
16
} ;
16
17
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ class UndoButton extends Component {
10
10
theme : PropTypes . any ,
11
11
} ;
12
12
13
- onClick = ( ) => {
13
+ onClick = ( event ) => {
14
+ event . stopPropagation ( ) ;
14
15
this . props . store . setEditorState ( EditorState . undo ( this . props . store . getEditorState ( ) ) ) ;
15
16
} ;
16
17
You can’t perform that action at this time.
0 commit comments