lkd-web-kit 0.4.12 → 0.4.13

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.
@@ -104,11 +104,11 @@ function InfinitySelect({
104
104
  handleSearch(event.currentTarget.value);
105
105
  } : void 0,
106
106
  onClick: (event) => {
107
- searchable ? combobox.openDropdown() : combobox.toggleDropdown();
107
+ if (!props.readOnly) searchable ? combobox.openDropdown() : combobox.toggleDropdown();
108
108
  props.onClick?.(event);
109
109
  },
110
110
  onFocus: (event) => {
111
- if (searchable) combobox.openDropdown();
111
+ if (!props.readOnly && searchable) combobox.openDropdown();
112
112
  props.onFocus?.(event);
113
113
  },
114
114
  onBlur: (event) => {
@@ -100,11 +100,11 @@ function InfinitySelect({
100
100
  handleSearch(event.currentTarget.value);
101
101
  } : void 0,
102
102
  onClick: (event) => {
103
- searchable ? combobox.openDropdown() : combobox.toggleDropdown();
103
+ if (!props.readOnly) searchable ? combobox.openDropdown() : combobox.toggleDropdown();
104
104
  props.onClick?.(event);
105
105
  },
106
106
  onFocus: (event) => {
107
- if (searchable) combobox.openDropdown();
107
+ if (!props.readOnly && searchable) combobox.openDropdown();
108
108
  props.onFocus?.(event);
109
109
  },
110
110
  onBlur: (event) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lkd-web-kit",
3
- "version": "0.4.12",
3
+ "version": "0.4.13",
4
4
  "description": "A template for creating React component libraries with Vite.",
5
5
  "author": "LKD",
6
6
  "license": "MIT",