-
Notifications
You must be signed in to change notification settings - Fork 630
Allow deselect when renderSelectedChoices enabled #1221
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
base: main
Are you sure you want to change the base?
Conversation
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.
Please ensure unit tests and e2e tests are passing.
- An e2e test for each functionality change should also be added. Ideally one each for
text
,select-one
andselect-multiple
even if it is testing it doesn't do anything.
This change has a lot of unrelated code churn which complicates git blame. Please rebuild the PR without those changes to preserve git blame
Changes to .js
files not matched in the .ts
files. The .ts
are the canonical source and the .js
changes will be discard at the next build. There are significant changes not committed into the .ts
Когда уже сделайте?!) |
7aff038
to
39ad700
Compare
All tests except the demo-page screenshot test are passing. I am not sure how to resolve that one? Do I need to generate a new screenshot?
I added a test for select-one and select-multiple. Not sure the text one is relevant in this case?
Apologies, this PR was rushed just to see if you'd be open to the idea. The PR should now be much more concise.
This is fixed now. |
Description
Drafting this PR as I am not sure if you would want to follow a different approach. If this looks good I can try to add tests.
There have been a few requests to allow for deselecting items via the dropdown when the
renderSelectedChoices
option is enabled. #804 #884I ran across this issue myself while needing to keep a multiselect box footprint minimal (it grows to be pretty large when selecting a few options).
This PR has 3 parts:m
renderSelectedChoices
is enabledrenderItems
boolean option to disable the "pills" in the multiselect input to allow one to only select/deselect via the dropdownScreenshots (if appropriate)
Example of having both
renderSelectedChoices: 'always'
andrenderItems: false
Types of changes
Checklist