@dataloop-ai/components 0.20.275 → 0.20.276
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
|
@@ -618,16 +618,15 @@ export default defineComponent({
|
|
|
618
618
|
return
|
|
619
619
|
}
|
|
620
620
|
|
|
621
|
-
if (focused.value) {
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
input.value.scrollTo(0, input.value.scrollHeight)
|
|
626
|
-
input.value.scrollLeft = input.value.scrollWidth
|
|
621
|
+
if (!focused.value) {
|
|
622
|
+
input.value.scrollTo(0, input.value.scrollHeight)
|
|
623
|
+
input.value.scrollLeft = input.value.scrollWidth
|
|
627
624
|
|
|
628
|
-
|
|
625
|
+
input.value.focus()
|
|
629
626
|
|
|
630
|
-
|
|
627
|
+
focused.value = true
|
|
628
|
+
emit('focus')
|
|
629
|
+
}
|
|
631
630
|
if (suggestions.value.length) {
|
|
632
631
|
showSuggestions.value = true
|
|
633
632
|
|
|
@@ -637,7 +636,6 @@ export default defineComponent({
|
|
|
637
636
|
)
|
|
638
637
|
})
|
|
639
638
|
}
|
|
640
|
-
emit('focus')
|
|
641
639
|
}
|
|
642
640
|
|
|
643
641
|
const processBlur = () => {
|