Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Continuously pressing enter shows empty tags (#6314)
When on a contact page, and adding tags, after adding the first tag, continuously pressing enter adds "empty" tags to the UI. Seems to be introduced by a fix of QA tool issues in 57b31f6 Before this change `this.search != ''` evaluated to true if search was `null`, with a strict comparison that is no longer the case. The `this.search` is reset to `null` though in some cases. I thought about simply extending the condition to also check for `!== null`, though imho the better solution would be to always reset it to empty string state, as is the default value. That also matches some click handler value, and is generally both the value on "non-changed" and on "changed but empty". fixes #6235
- Loading branch information