Skip to content

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

Merged
manucorporat merged 11 commits into
ionic-team:masterfrom
kplhub:4.0.0-rc.0__radio-group__allow-empty-selection
Dec 31, 2018
Merged

feat(radio-group): add missing implementation for property allowEmptySelection#16880
manucorporat merged 11 commits into
ionic-team:masterfrom
kplhub:4.0.0-rc.0__radio-group__allow-empty-selection

Conversation

@kplhub

@kplhub kplhub commented Dec 25, 2018

Copy link
Copy Markdown
Contributor

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

Comment thread core/src/components/radio/radio.tsx
Comment thread core/src/components/radio/radio.tsx Outdated
Co-Authored-By: kplhub <kplhub@users.noreply.github.com>
@manucorporat

Copy link
Copy Markdown
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