dataloop-ai / components

Dataloop's component library
Apache License 2.0
3 stars 15 forks source link

DAT-68110: fix onInput/debouncedSetInputValue calls #906

Closed makc-dataloop closed 7 months ago

makc-dataloop commented 7 months ago

@fadiDL what happened here was when you type n. real quick, you get debounced called with n then non-debounced called with n. - but debounced version would actually call non-debounced after timeout thus undoing the call with n. (erasing the dot). by always calling debounced version we make sure that timeout-ed call with n does not happen - it gets replaced with the 2nd n. call