nucleus-core-ts 0.10.197 → 0.10.198
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/.build-ok
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.10.
|
|
1
|
+
0.10.198
|
|
@@ -24,6 +24,15 @@ import { InputMessage } from './InputMessage';
|
|
|
24
24
|
}, theme), 'cursor-text', wrapperClassName),
|
|
25
25
|
onMouseEnter: onMouseEnter,
|
|
26
26
|
onMouseLeave: onMouseLeave,
|
|
27
|
+
onMouseDown: (event)=>{
|
|
28
|
+
// A press on the frame (its padding, the floating label, a unit) focuses the input at once. The frame is a label, which
|
|
29
|
+
// only focuses its input on click (mouse up): until then focus sits on the page and a fast first keystroke is lost. A
|
|
30
|
+
// press on the input itself or on a control inside the frame (the password toggle) keeps its own behaviour.
|
|
31
|
+
const target = event.target;
|
|
32
|
+
if (disabled || !(target instanceof Element) || target.closest('input, textarea, select, button, a, [role="button"]')) return;
|
|
33
|
+
event.preventDefault();
|
|
34
|
+
inputRef.current?.focus();
|
|
35
|
+
},
|
|
27
36
|
children: [
|
|
28
37
|
leadingIcon && /*#__PURE__*/ _jsx(InputAdornment, {
|
|
29
38
|
side: "left",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nucleus-core-ts",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.198",
|
|
4
4
|
"description": "Production-ready, enterprise-grade TypeScript framework for building multi-tenant APIs",
|
|
5
5
|
"author": "Hidayet Can Özcan <hidayetcan@gmail.com>",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|