react-polymorph
Advanced tools
@@ -88,5 +88,5 @@ 'use strict'; | ||
composedTheme: (0, _themes.composeTheme)((0, _themes.addThemeId)(theme || context.theme, themeId), (0, _themes.addThemeId)(themeOverrides, themeId), context.ROOT_THEME_API), | ||
isOpen: false, | ||
isMouseOverItems: false, | ||
isMouseOverRoot: false | ||
isMouseOverRoot: false, | ||
isOpen: false | ||
}; | ||
@@ -130,8 +130,8 @@ return _this; | ||
isOpen: isOpen || this.state.isOpen || isOpenBecauseOfHover, | ||
onItemSelected: this._onItemSelected, | ||
onLabelClick: this._onLabelClick, | ||
onItemSelected: this._onItemSelected, | ||
rootRef: this.rootElement, | ||
theme: this.state.composedTheme, | ||
setMouseOverItems: this._setMouseOverItems, | ||
setMouseOverRoot: this._setMouseOverRoot, | ||
setMouseOverItems: this._setMouseOverItems | ||
theme: this.state.composedTheme | ||
}, rest)); | ||
@@ -138,0 +138,0 @@ } |
@@ -33,3 +33,2 @@ 'use strict'; | ||
{ | ||
ref: props.rootRef, | ||
className: (0, _classnames2.default)([props.className, themeApi.dropdown]), | ||
@@ -41,6 +40,7 @@ onMouseEnter: function onMouseEnter() { | ||
return setMouseOverRoot(false); | ||
} | ||
}, | ||
ref: props.rootRef | ||
}, | ||
_react2.default.createElement( | ||
'div', | ||
'button', | ||
{ | ||
@@ -53,11 +53,11 @@ className: themeApi.label, | ||
_react2.default.createElement(_Options.Options, { | ||
skin: _OptionsSkin.OptionsSkin, | ||
theme: props.theme, | ||
isFloating: true, | ||
isOpen: props.isOpen, | ||
noOptionsArrow: props.noArrow, | ||
onChange: props.onItemSelected, | ||
options: props.items, | ||
onChange: props.onItemSelected, | ||
selectedOption: props.activeItem, | ||
setMouseIsOverOptions: setMouseOverItems, | ||
noOptionsArrow: props.noArrow, | ||
isFloating: true | ||
skin: _OptionsSkin.OptionsSkin, | ||
theme: props.theme | ||
}) | ||
@@ -64,0 +64,0 @@ ); |
{ | ||
"name": "react-polymorph", | ||
"description": "React components with highly customizable logic, markup and styles.", | ||
"version": "0.9.0-rc.17", | ||
"version": "0.9.0-rc.18", | ||
"scripts": { | ||
@@ -6,0 +6,0 @@ "build": "cross-env yarn clean && yarn sass && yarn js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1325008
0