Skip to content

fix(ui5-input): selection-change is now fired when item is reselected #11301

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

Merged
merged 4 commits into from
Apr 16, 2025

Conversation

ivoplashkov
Copy link
Member

@ivoplashkov ivoplashkov commented Apr 10, 2025

FIXES: #11182
FIXES: #10513

@ivoplashkov ivoplashkov requested a review from ndeshev April 11, 2025 07:10
@@ -676,6 +676,64 @@ describe("Selection-change event", () => {
expect(eventCount).to.equal(2);
});
});

Copy link
Contributor

@ndeshev ndeshev Apr 14, 2025

Choose a reason for hiding this comment

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

you can check event firing with stubs or spies like:

	cy.get("@input")
		.then($input => {
		        $input[0].addEventListener("ui5-change", cy.stub().as("inputChange"));
		});

and then

		cy.get("@inputChange").should("have.been.calledTwice");

@ivoplashkov ivoplashkov merged commit 1d11709 into main Apr 16, 2025
12 checks passed
@ivoplashkov ivoplashkov deleted the input-selection-change branch April 16, 2025 05:50
@ui5-webcomponents-bot
Copy link
Collaborator

🎉 This PR is included in version v2.10.0-rc.1 🎉

The release is available on v2.10.0-rc.1

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants