@dataloop-ai/components 0.18.87 → 0.18.88

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.18.87",
3
+ "version": "0.18.88",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -350,7 +350,12 @@ export default defineComponent({
350
350
  const setInputFromModel = (value: string) => {
351
351
  searchQuery.value = value
352
352
  input.value.innerHTML = value
353
- setInputValue(`${value} `, { noEmit: true })
353
+
354
+ let inputValue = `${value}`
355
+ if (value.length) {
356
+ inputValue += ' '
357
+ }
358
+ setInputValue(inputValue, { noEmit: true })
354
359
  }
355
360
 
356
361
  const debouncedSetInputFromModel = debounce(setInputFromModel, 300)