@atlaskit/link-picker 1.9.1 → 1.9.2
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 +6 -0
- package/dist/cjs/ui/link-picker/text-input/index.js +7 -5
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/ui/link-picker/text-input/index.js +7 -5
- package/dist/es2019/version.json +1 -1
- package/dist/esm/ui/link-picker/text-input/index.js +7 -5
- package/dist/esm/version.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -72,11 +72,13 @@ var PanelTextInput = function PanelTextInput(props) {
|
|
|
72
72
|
onKeyDown(e);
|
|
73
73
|
}
|
|
74
74
|
}, [onUndo, onRedo, onKeyDown]);
|
|
75
|
-
var handleClear = (0, _react.useCallback)(function () {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
75
|
+
var handleClear = (0, _react.useCallback)(function (e) {
|
|
76
|
+
var _inputRef$current;
|
|
77
|
+
|
|
78
|
+
e.preventDefault();
|
|
79
|
+
e.stopPropagation();
|
|
80
|
+
onClear === null || onClear === void 0 ? void 0 : onClear(name);
|
|
81
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
80
82
|
}, [name, onClear]);
|
|
81
83
|
var clearText = restProps.value !== '' && (0, _react2.jsx)(_tooltip.default, {
|
|
82
84
|
content: clearLabel
|
package/dist/cjs/version.json
CHANGED
|
@@ -54,11 +54,13 @@ const PanelTextInput = props => {
|
|
|
54
54
|
onKeyDown(e);
|
|
55
55
|
}
|
|
56
56
|
}, [onUndo, onRedo, onKeyDown]);
|
|
57
|
-
const handleClear = useCallback(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
const handleClear = useCallback(e => {
|
|
58
|
+
var _inputRef$current;
|
|
59
|
+
|
|
60
|
+
e.preventDefault();
|
|
61
|
+
e.stopPropagation();
|
|
62
|
+
onClear === null || onClear === void 0 ? void 0 : onClear(name);
|
|
63
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
62
64
|
}, [name, onClear]);
|
|
63
65
|
const clearText = restProps.value !== '' && jsx(Tooltip, {
|
|
64
66
|
content: clearLabel
|
package/dist/es2019/version.json
CHANGED
|
@@ -55,11 +55,13 @@ var PanelTextInput = function PanelTextInput(props) {
|
|
|
55
55
|
onKeyDown(e);
|
|
56
56
|
}
|
|
57
57
|
}, [onUndo, onRedo, onKeyDown]);
|
|
58
|
-
var handleClear = useCallback(function () {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
var handleClear = useCallback(function (e) {
|
|
59
|
+
var _inputRef$current;
|
|
60
|
+
|
|
61
|
+
e.preventDefault();
|
|
62
|
+
e.stopPropagation();
|
|
63
|
+
onClear === null || onClear === void 0 ? void 0 : onClear(name);
|
|
64
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
63
65
|
}, [name, onClear]);
|
|
64
66
|
var clearText = restProps.value !== '' && jsx(Tooltip, {
|
|
65
67
|
content: clearLabel
|
package/dist/esm/version.json
CHANGED