Skip to content

[ui5-input]: issue with the clear button #11130

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
1 task done
terminator666 opened this issue Mar 18, 2025 · 2 comments · Fixed by #11147
Closed
1 task done

[ui5-input]: issue with the clear button #11130

terminator666 opened this issue Mar 18, 2025 · 2 comments · Fixed by #11147
Assignees
Labels
bug This issue is a bug in the code released TOPIC RL

Comments

@terminator666
Copy link

Bug Description

When you click on the clear button then the change event is not called afterwards.

Affected Component

ui5-input

Expected Behaviour

The change event should be triggered after the click of clear button.

Isolated Example

https://sap.github.io/ui5-webcomponents/play/#eyJpbmRleC5odG1sIjp7Im5hbWUiOiJpbmRleC5odG1sIiwiY29udGVudCI6IjwhLS0gcGxheWdyb3VuZC1mb2xkIC0tPlxuPCFET0NUWVBFIGh0bWw-XG48aHRtbCBsYW5nPVwiZW5cIj5cblxuXG5cbjxoZWFkPlxuICAgIFxuICAgIDxzdHlsZT5cbiAgICAgICo6bm90KDpkZWZpbmVkKSB7XG4gICAgICAgIGRpc3BsYXk6IG5vbmU7XG4gICAgICB9XG5cbiAgICBodG1sIHtcbiAgICAgIGZvcmNlZC1jb2xvci1hZGp1c3Q6IG5vbmU7XG4gICAgfVxuICAgIDwvc3R5bGU-XG5cbiAgICBcbiAgICA8c3R5bGU-XG4gICAgICAqOm5vdCg6ZGVmaW5lZCkge1xuICAgICAgICBkaXNwbGF5OiBub25lO1xuICAgICAgfVxuXG4gICAgaHRtbCB7XG4gICAgICBmb3JjZWQtY29sb3ItYWRqdXN0OiBub25lO1xuICAgIH1cbiAgICA8L3N0eWxlPlxuXG4gICAgPG1ldGEgY2hhcnNldD1cIlVURi04XCI-XG4gICAgPG1ldGEgbmFtZT1cInZpZXdwb3J0XCIgY29udGVudD1cIndpZHRoPWRldmljZS13aWR0aCwgaW5pdGlhbC1zY2FsZT0xLjBcIj5cbiAgICA8dGl0bGU-U2FtcGxlPC90aXRsZT5cbjwvaGVhZD5cblxuPGJvZHkgc3R5bGU9XCJiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1zYXBCYWNrZ3JvdW5kQ29sb3IpXCI-XG4gICAgPCEtLSBwbGF5Z3JvdW5kLWZvbGQtZW5kIC0tPlxuXG4gICAgPHVpNS1pbnB1dCBpZD1cImlucFwiIHZhbHVlPVwiSW5wdXRcIiBzaG93LWNsZWFyLWljb24-PC91aTUtaW5wdXQ-XG4gICAgPCEtLSBwbGF5Z3JvdW5kLWZvbGQgLS0-XG4gICAgPHNjcmlwdCB0eXBlPVwibW9kdWxlXCIgc3JjPVwibWFpbi5qc1wiPjwvc2NyaXB0PlxuPC9ib2R5PlxuXG48L2h0bWw-XG48IS0tIHBsYXlncm91bmQtZm9sZC1lbmQgLS0-XG4ifSwibWFpbi5qcyI6eyJuYW1lIjoibWFpbi5qcyIsImNvbnRlbnQiOiIvKiBwbGF5Z3JvdW5kLWhpZGUgKi9cbmltcG9ydCBcIi4vcGxheWdyb3VuZC1zdXBwb3J0LmpzXCI7XG4vKiBwbGF5Z3JvdW5kLWhpZGUtZW5kICovXG5pbXBvcnQgXCJAdWk1L3dlYmNvbXBvbmVudHMvZGlzdC9JbnB1dC5qc1wiO1xuXG5kb2N1bWVudC5xdWVyeVNlbGVjdG9yKFwiI2lucFwiKS5hZGRFdmVudExpc3RlbmVyKFwiY2hhbmdlXCIsICgpID0-IHtcbmNvbnNvbGUubG9nKFwib24gY2hhbmdlXCIpXG59KSJ9fQ

Steps to Reproduce

0. bind a function to change event, and then write in that function console.log('onChanged')
1. type aaa in the input
2. press Enter key
3. in the console you see 'onChanged'
4. click on the clear button
5. type bbb in the input field and press Enter key
6. in the console you do not see 'onChanged'
7. this is the bug, you should see 'onChanged'

Log Output, Stack Trace or Screenshots

No response

Priority

None

UI5 Web Components Version

2.7.2

Browser

Chrome

Operating System

No response

Additional Context

No response

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.
@terminator666 terminator666 added the bug This issue is a bug in the code label Mar 18, 2025
@ilhan007
Copy link
Member

Hello @SAP/ui5-webcomponents-topic-rl the issue is reproducible with the given snippet, could you take a look : )

@ui5-webcomponents-bot
Copy link
Collaborator

🎉 This issue has been resolved in version v2.9.0-rc.3 🎉

The release is available on v2.9.0-rc.3

Your semantic-release bot 📦🚀

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug This issue is a bug in the code released TOPIC RL
Projects
Status: Completed
Development

Successfully merging a pull request may close this issue.

4 participants