@dataloop-ai/components 0.20.178-ds-v3.1 → 0.20.178-ds-v3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataloop-ai/components",
3
- "version": "0.20.178-ds-v3.1",
3
+ "version": "0.20.178-ds-v3.2",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -160,12 +160,16 @@ export default defineComponent({
160
160
  this.$emit('search', this.modelValue)
161
161
  },
162
162
  focus(): void {
163
- const inputComponent = this.$refs.input as typeof DlInput
164
- inputComponent.focus()
163
+ const inputComponent = this.$refs.input as InstanceType<
164
+ typeof DlInput
165
+ >
166
+ inputComponent?.focus()
165
167
  },
166
168
  blur(): void {
167
- const inputComponent = this.$refs.input as typeof DlInput
168
- inputComponent.blur()
169
+ const inputComponent = this.$refs.input as InstanceType<
170
+ typeof DlInput
171
+ >
172
+ inputComponent?.blur()
169
173
  }
170
174
  }
171
175
  })