Skip to content
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

feat(radio-group): add missing implementation for property allowEmptySelection #16880

Conversation

kplhub
Copy link
Contributor

@kplhub kplhub commented Dec 25, 2018

Short description of what this resolves:

Resolves: Missing implementation of deselection in a radio-group: #16841

Changes proposed in this pull request:

-In radio: added @event() ionDeselect, which is emitted from OnClick if the radio is already checked
-In radio-group: added @listen('ionDeselect'), which, if allowEmptySelection property is true, will uncheck radio and set radio-group value to undefined

Ionic Version: core 4.0.0-rc.0

Fixes: #16841

core/src/components/radio/radio.tsx Show resolved Hide resolved
core/src/components/radio/radio.tsx Outdated Show resolved Hide resolved
@manucorporat
Copy link
Contributor

One last thing, you need to merge master, npm install, npm run build and the commit the updated files too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants