Skip to content

Conversation

thetaPC
Copy link
Contributor

@thetaPC thetaPC commented Oct 17, 2025

Issue number: internal


What is the current behavior?

ionFocus and ionBlur are not being emitted for checkbox and toggle.

What is the new behavior?

  • Moved the onFocus and onBlur to Host
  • Added tests for onFocus, onBlur, and onChange.
  • Added a workaround on Playwright in order to trigger ionBlur since Playwright browsers aren't acting like native browsers when it comes to tabbing.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Dev build: 8.7.7-dev.11761071592.1d1b804d

@vercel
Copy link

vercel bot commented Oct 17, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
ionic-framework Ready Ready Preview Comment Oct 22, 2025 7:50pm

@thetaPC thetaPC marked this pull request as ready for review October 20, 2025 16:35
@thetaPC thetaPC requested a review from a team as a code owner October 20, 2025 16:35
@thetaPC thetaPC requested a review from brandyscarney October 20, 2025 16:35
@thetaPC thetaPC changed the title fix(checkbox): fire ionFocus and ionBlur fix(checkbox, toggle): fire ionFocus and ionBlur Oct 20, 2025
Copy link
Member

@brandyscarney brandyscarney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few requests but looks great! Nice work catching & fixing this.

Copy link
Member

@ShaneK ShaneK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking really good, just a few change requests


configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) => {
configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
test.describe(title('toggle: ionChange'), () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like there's no ionBlur test for toggle like there is for Checkbox. I think it may be worth adding just in case, but up to you

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot to commit them 🤦‍♀️ 1a411f0

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I just saw Brandy had already mentioned this. My bad. Great work!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too slow @ShaneK!

thetaPC and others added 2 commits October 22, 2025 12:36
Co-authored-by: Shane <shane@shanessite.net>
Co-authored-by: Shane <shane@shanessite.net>
Copy link
Member

@ShaneK ShaneK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! 🚀

@thetaPC thetaPC added this pull request to the merge queue Oct 23, 2025
Merged via the queue into main with commit 54a1c86 Oct 23, 2025
51 checks passed
@thetaPC thetaPC deleted the FW-6796 branch October 23, 2025 17:19
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.

4 participants