@ansible/ansible-ui-framework 0.0.563 → 0.0.564
Sign up to get free protection for your applications and to get access to all the features.
@@ -183,7 +183,7 @@ function ToolbarTextFilter(props) {
|
|
183
183
|
var _a = __read((0, react_1.useState)(''), 2), value = _a[0], setValue = _a[1];
|
184
184
|
return ((0, jsx_runtime_1.jsxs)(react_core_1.InputGroup, { children: [(0, jsx_runtime_1.jsxs)(react_core_1.TextInputGroup, __assign({ style: { minWidth: 220 } }, { children: [(0, jsx_runtime_1.jsx)(react_core_1.TextInputGroupMain, { id: props.id,
|
185
185
|
// ref={ref}
|
186
|
-
value: value, onChange: setValue, onKeyUp: function (event) {
|
186
|
+
value: value, onChange: function (_, v) { return setValue(v); }, onKeyUp: function (event) {
|
187
187
|
if (value && event.key === 'Enter') {
|
188
188
|
props.addFilter(value);
|
189
189
|
setValue('');
|