This repository was archived by the owner on Sep 1, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +24
-7
lines changed Expand file tree Collapse file tree 5 files changed +24
-7
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ All the changes can be found below. Order used:
99- Fixed
1010- Security
1111
12+ ## v0.2.1
13+
14+ ### Fixed
15+ - Fixed ` hideMenu is not a function ` error while scrolling.
16+
1217## v0.2.0
1318
1419### Added
Original file line number Diff line number Diff line change @@ -86,6 +86,12 @@ var MenuContainer = _react2["default"].createClass({
8686
8787 this . _hideMenu ( ) ;
8888 } ,
89+ _hideMenu : function _hideMenu ( ) {
90+ this . props . flux . getActions ( "menu" ) . setParams ( {
91+ isVisible : false ,
92+ currentItem : { }
93+ } ) ;
94+ } ,
8995 _bindHandlers : function _bindHandlers ( ) {
9096 var fn = this . _outsideClickHandler ,
9197 fn2 = this . _hideMenu ;
Original file line number Diff line number Diff line change 11{
22 "name" : " react-contextmenu" ,
3- "version" : " 0.2.0 " ,
3+ "version" : " 0.2.1 " ,
44 "description" : " Context Menu implemented in React" ,
55 "main" : " modules/index.js" ,
66 "keywords" : [
Original file line number Diff line number Diff line change @@ -69,6 +69,12 @@ const MenuContainer = React.createClass({
6969
7070 this . _hideMenu ( ) ;
7171 } ,
72+ _hideMenu ( ) {
73+ this . props . flux . getActions ( "menu" ) . setParams ( {
74+ isVisible : false ,
75+ currentItem : { }
76+ } ) ;
77+ } ,
7278 _bindHandlers ( ) {
7379 let fn = this . _outsideClickHandler ,
7480 fn2 = this . _hideMenu ;
You can’t perform that action at this time.
0 commit comments