@plastic-js/tsumiki 0.1.84 → 0.1.85
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/dist/components/Input.js +2 -3
- package/package.json +1 -1
package/dist/components/Input.js
CHANGED
|
@@ -188,11 +188,10 @@ var Input = (props = {}) => {
|
|
|
188
188
|
if (!isPassword) return read(local.type);
|
|
189
189
|
return showPassword() ? "text" : "password";
|
|
190
190
|
};
|
|
191
|
-
const
|
|
191
|
+
const handleAffixPointerUp = (e) => {
|
|
192
192
|
if (effectiveDisabled()) return;
|
|
193
193
|
const target = e.target;
|
|
194
194
|
if (target && target.closest && target.closest("button, a, input, select, textarea, label, [contenteditable]")) return;
|
|
195
|
-
e.preventDefault();
|
|
196
195
|
inputEl?.focus();
|
|
197
196
|
};
|
|
198
197
|
const renderAffix = (content) => {
|
|
@@ -201,7 +200,7 @@ var Input = (props = {}) => {
|
|
|
201
200
|
const _el0 = _tmpl.cloneNode(true);
|
|
202
201
|
insert(_el0, () => content);
|
|
203
202
|
setProp(_el0, "className", () => affixClass);
|
|
204
|
-
setProp(_el0, "
|
|
203
|
+
setProp(_el0, "onPointerUp", () => handleAffixPointerUp);
|
|
205
204
|
return _el0;
|
|
206
205
|
};
|
|
207
206
|
};
|