@neovici/cosmoz-input 5.8.1 → 5.8.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/dist/styles.js CHANGED
@@ -118,7 +118,6 @@ export const styles = css `
118
118
  top: 0;
119
119
  left: 0;
120
120
  width: var(--cosmoz-input-label-width, 100%);
121
- pointer-events: none;
122
121
  transition:
123
122
  transform 0.25s,
124
123
  width 0.25s;
package/dist/use-input.js CHANGED
@@ -14,7 +14,7 @@ export const useInput = (host) => {
14
14
  useEffect(() => {
15
15
  const onMouseDown = (e) => {
16
16
  const target = e.composedPath()[0];
17
- if (target?.closest?.('input, textarea'))
17
+ if (target?.closest?.('input, textarea, label'))
18
18
  return;
19
19
  e.preventDefault();
20
20
  inputRef.current?.focus();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-input",
3
- "version": "5.8.1",
3
+ "version": "5.8.2",
4
4
  "description": "A input web component",
5
5
  "keywords": [
6
6
  "lit-html",