diff --git a/app/javascript/shared/components/tags.jsx b/app/javascript/shared/components/tags.jsx index f7db730ed..afeaf439a 100644 --- a/app/javascript/shared/components/tags.jsx +++ b/app/javascript/shared/components/tags.jsx @@ -31,9 +31,10 @@ class Tags extends Component { constructor(props) { super(props); - this.debouncedTagSearch = debounce(this.handleInput.bind(this), 150, { - leading: true, - }); + // 250ms without invoking the function at the leading edge of the timeout + // NOTE: this seems the best combination of wait time and options to avoid + // flickering and text replacement during autocomplete + this.debouncedTagSearch = debounce(this.handleInput.bind(this), 250); this.state = { selectedIndex: -1,