-
Notifications
You must be signed in to change notification settings - Fork 575
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
Added support to disable suggestion selection #719
base: master
Are you sure you want to change the base?
Conversation
If a suggestion is disabled... - Set aria-disabled=true - Apply style - Don't handle onSelect Co-authored-by: Maks <[email protected]>
🦋 Changeset detectedLatest commit: 47b3c68 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Hi @Sigrsig & @steffektif, sorry for the nudge - are you still maintaining this project? |
Hey sorry, already the last time you reached out I pinged some people. Currently @PreussHendrik and @crecotun are in charge. I hope they see this message and can help you out |
Thanks a lot @steffektif - appreciate it 🙂 |
Hi, @PreussHendrik and @crecotun! I'd really appreciate a review here - might one of you be able to take a look please? Let me know if there's anything I can do to help get this merged. |
Hi @jack-lewin |
Thank you for working on this! Hope this gets merged soon! |
It was a busy 2 weeks; I'll have a look at PR today |
(props) => ({ | ||
'&focused': props.focused, | ||
'&disabled': Boolean( | ||
typeof props.suggestion === 'string' ? false : props.suggestion.disabled |
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.
Why do you check here if 'suggestion' is string before accessing disabled
properly, but on a line 74, you don't?
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.
hi, @crecotun, is there any update on this PR? Thank you! |
I've picked up #440 to try and get it merged.
This PR adds an optional
disabled
prop to suggestions.If a suggestion is
disabled
, it...aria-disabled = true
I've also...
If this lands, I'll make a separate PR to the DefinitelyTyped repo.
Feedback appreciated - cc @mastrix, @Sigrsig and @steffektif 🙏