-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
facets searchOnChange Causing Console Errors (and Impacting SpellCheck) #509
Comments
alexisgrow
added a commit
that referenced
this issue
May 18, 2020
When using the searchOnChange config option, the reset button is not present, and we get a 'cannot addEventListener of null' error. Since this.config.resetFilters is true by default, implementers will see this error unless they specify false here, which seems incorrect. Adding a guard so that the SDK will only try to bind the click listener if the element exists. Solves this issue: (#509). Also updates README to reflect current behavior. TEST=manual Add a FilterBox component with the searchOnChange option, notice error before change. After change, notice that the apply button is missing and clicking options triggers a search.
tmeyer2115
pushed a commit
that referenced
this issue
May 18, 2020
When using the searchOnChange config option, the reset button is not present, and we get a 'cannot addEventListener of null' error. Since this.config.resetFilters is true by default, implementers will see this error unless they specify false here, which seems incorrect. Adding a guard so that the SDK will only try to bind the click listener if the element exists. Solves this issue: (#509). Also updates README to reflect current behavior. TEST=manual Add a FilterBox component with the searchOnChange option, notice error before change. After change, notice that the apply button is missing and clicking options triggers a search.
This has been fixed in v1.1.1, closing! |
oshi97
pushed a commit
that referenced
this issue
May 26, 2020
When using the searchOnChange config option, the reset button is not present, and we get a 'cannot addEventListener of null' error. Since this.config.resetFilters is true by default, implementers will see this error unless they specify false here, which seems incorrect. Adding a guard so that the SDK will only try to bind the click listener if the element exists. Solves this issue: (#509). Also updates README to reflect current behavior. TEST=manual Add a FilterBox component with the searchOnChange option, notice error before change. After change, notice that the apply button is missing and clicking options triggers a search.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current behavior: When I set "searchOnChange" in the facets component to true, get a bunch of console errors. (In addition, the spell check component does not show up, but I'm guessing it has to do with some issues in setting state). When I remove the "searchOnChange" attribute, no console errors, and spellcheck works fine.
Expected behavior: Setting the search on change attribute should work fine (and the spell check component should show up)
Version:
Verified this on dev/v0.13.0 (disregard the fact that I'm using the styling and templates) -- can work to verify on an earlier version (I'm guessing it's always been there since we didn't change anything having to do with facets in this version).
Console Error:
`<!doctype html>
The text was updated successfully, but these errors were encountered: