@widergy/energy-ui 1.117.4 → 1.117.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [1.117.5](https://github.com/widergy/energy-ui/compare/v1.117.4...v1.117.5) (2022-04-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* picker fixes ([#279](https://github.com/widergy/energy-ui/issues/279)) ([6ee6c2a](https://github.com/widergy/energy-ui/commit/6ee6c2a13eeff8f5a72d955e519613eafaa0e241))
|
|
7
|
+
* picker fixes ([#279](https://github.com/widergy/energy-ui/issues/279)) ([af3e3ed](https://github.com/widergy/energy-ui/commit/af3e3ed4187db3331414811307d6c33b1c9ec716))
|
|
8
|
+
|
|
1
9
|
## [1.117.4](https://github.com/widergy/energy-ui/compare/v1.117.3...v1.117.4) (2022-04-25)
|
|
2
10
|
|
|
3
11
|
|
|
@@ -56,6 +56,8 @@ var UTEmojiPicker = function UTEmojiPicker(_ref) {
|
|
|
56
56
|
ButtonComponent = _ref$ButtonComponent === void 0 ? _UTTouchableWithoutFeedback.default : _ref$ButtonComponent,
|
|
57
57
|
themeClasses = _ref.classes,
|
|
58
58
|
classNames = _ref.classNames,
|
|
59
|
+
_ref$closeOnPick = _ref.closeOnPick,
|
|
60
|
+
closeOnPick = _ref$closeOnPick === void 0 ? true : _ref$closeOnPick,
|
|
59
61
|
excludedEmojis = _ref.excludedEmojis,
|
|
60
62
|
groupsModifier = _ref.groupsModifier,
|
|
61
63
|
handlePick = _ref.handlePick,
|
|
@@ -93,11 +95,12 @@ var UTEmojiPicker = function UTEmojiPicker(_ref) {
|
|
|
93
95
|
role: "button",
|
|
94
96
|
onMouseDown: function onMouseDown(e) {
|
|
95
97
|
e.preventDefault();
|
|
98
|
+
if (closeOnPick) setIsOpen(false);
|
|
96
99
|
handlePick(emojiData);
|
|
97
100
|
},
|
|
98
101
|
className: "".concat(_stylesModule.default.emoji, " ").concat(classes.emoji)
|
|
99
102
|
}, (0, _utils.getEmoji)(emojiData));
|
|
100
|
-
}, []);
|
|
103
|
+
}, [handlePick]);
|
|
101
104
|
var groupEmojiRenderer = (0, _react.useCallback)(function (_ref2) {
|
|
102
105
|
var Icon = _ref2.Icon,
|
|
103
106
|
key = _ref2.key;
|
|
@@ -144,6 +147,7 @@ UTEmojiPicker.propTypes = {
|
|
|
144
147
|
ButtonComponent: _propTypes.element,
|
|
145
148
|
handlePick: _propTypes.func,
|
|
146
149
|
popperPosition: _propTypes.string,
|
|
150
|
+
closeOnPick: _propTypes.bool,
|
|
147
151
|
classNames: _types.classesPropTypes,
|
|
148
152
|
classes: (0, _propTypes.objectOf)(_propTypes.string)
|
|
149
153
|
};
|