-
Notifications
You must be signed in to change notification settings - Fork 119
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
[feature]: ignoreEventCondition option #980
[feature]: ignoreEventCondition option #980
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Thank you for your contribution! |
Agree with the name 👍, thanks for the comment. Will add tests and docs in a moment |
@JohannesKlauss, done 👌 |
##### `enableOnFormTags` | ||
|
||
```ts | ||
enableOnFormTags: string[] // default: undefined | ||
``` | ||
|
||
Normally we do not want a hotkey being triggered while a user types something into an input field. In some cases however | ||
this might desirable. We can enable the callback trigger for an input tag using the following values: | ||
|
||
`INPUT`, `TEXTAREA`, `SELECT` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This text is now doubled
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed 👍
Thank you for your work! |
Sorry to bump this already merged PR, but just out of curiosity I'd like to ask what the difference between Also, if |
@isti115, I didn't know those existed 😄. but now that I look at it, there's no mention of |
@alpinagyok Wow, sorry for not checking thoroughly enough, you're completely right, it seems to have been removed at some point during the move to version 4 as far as I can tell from the commit history. I'll submit a PR to remove it from the documentation as well. |
Hey!
Changes
ignoreEventCondition
optionWhy
We need a bit finer control of when to ignore events. As an example, checking
event.target.closest()
by role/cssWdyt? 😄