@dataloop-ai/components 0.19.199 → 0.19.201
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
|
@@ -752,7 +752,17 @@ export default defineComponent({
|
|
|
752
752
|
if (StateManager.instance.disableDebounce) {
|
|
753
753
|
return handleEnterKey
|
|
754
754
|
}
|
|
755
|
-
|
|
755
|
+
const debounced = debounce(
|
|
756
|
+
handleEnterKey,
|
|
757
|
+
inputDebounce.value ?? 100
|
|
758
|
+
)
|
|
759
|
+
return function (parameters: { fromSuggestion?: boolean }) {
|
|
760
|
+
if (parameters?.fromSuggestion) {
|
|
761
|
+
handleEnterKey(parameters)
|
|
762
|
+
} else {
|
|
763
|
+
debounced(parameters)
|
|
764
|
+
}
|
|
765
|
+
}
|
|
756
766
|
})
|
|
757
767
|
|
|
758
768
|
const onEscapeKey = () => {
|