@dataloop-ai/components 0.19.270 → 0.19.271

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataloop-ai/components",
3
- "version": "0.19.270",
3
+ "version": "0.19.271",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -840,10 +840,6 @@ export default defineComponent({
840
840
 
841
841
  const onModelValueChange = (val: string | number) => {
842
842
  if (val !== null && val !== undefined) {
843
- if (readonly.value || disabled.value) {
844
- return
845
- }
846
-
847
843
  if (val === input.value.innerHTML) {
848
844
  return
849
845
  }
@@ -1145,6 +1141,10 @@ export default defineComponent({
1145
1141
  }
1146
1142
  },
1147
1143
  onKeydown(e: KeyboardEvent) {
1144
+ if (this.readonly || this.disabled) {
1145
+ return
1146
+ }
1147
+
1148
1148
  if (e.key !== 'Backspace') {
1149
1149
  /**
1150
1150
  * Allow only numbers