-
Notifications
You must be signed in to change notification settings - Fork 116
Update FilterBar.js #347
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
Update FilterBar.js #347
Conversation
|
Thanks @ThinkDumbIndustries for the PR ✨ Pinging @runemadsen: should the value of |
|
Thanks for this! I think it's fine to change it in the |
|
@runemadsen I amended my PR as per your comment. However I'm note sure about the camel-case spelling; all I see online and in the HTML web docs is lowercase I'm also unsure about surrounding Further, this has made me realise that Thoughts? |
|
Thanks @ThinkDumbIndustries. Please see answers below.
This is a React component and React components have camelcasing in their attributes. So what is
In React, booleans should be given as proper JavaScript values and therefore the curly brackets are warranted.
Unless there are accessibility arguments for disabling the spell check, I would favor disabling it. @SableRaf Do you have thoughts here? |
I think disabling the spellcheck makes sense in that case. Once you validate the review, I'll merge the PR. Thanks for looking into it! |
This issue is about the Filter feature on the Documentation page. When I type, for example, "textal" to search for the page for textAlign, my computer (macOS 13.1, Safari 16.2) autocompletes to "tectal". I wish it didn't! Out of habit, I press the return key (by habit e.g. using Google) so my computer autocompletes, and I don't see the page I'm looking for. The modification I suggest fixes this. I think it makes sense that code should not be autocompleted, and most of what I type into the filter input is code / a processing function I know exists.
What I did was make a local change on my browser to verify the behaviour i.e. that adding spellcheck="false" actually disables my browser's / my computer's spellcheck. Then I found the FilterBar.js and modified it. I'm assuming this changes the generated html files. I have not tested this i.e. I have not run the site locally using npm.