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

Fix #4509 - Editable dropdown doesn't open when typing on a mobile de… #4878

Merged
merged 3 commits into from
Dec 13, 2023

Conversation

harundemr
Copy link
Contributor

Fix #4509 has been verified on both Android and iOS devices.

Copy link

vercel bot commented Nov 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
primevue ⬜️ Ignored (Inspect) Visit Preview Dec 7, 2023 5:59pm

@@ -317,7 +317,10 @@ export default {
this.$emit('blur', event);
},
onKeyDown(event) {
if (this.disabled) {
// Android keyboard event
const isAndroidKeyboardEvent = event.isComposing || event.keyCode === 229;
Copy link
Member

Choose a reason for hiding this comment

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

You can use DomHandler.isAndroid() instead

Choose a reason for hiding this comment

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

@melloware
if use DomHandler.isAndroid(), Android's backspace key will not work
He should mean to distinguish between normal keys and input methods like Chinese and Japanese

@harundemr
Copy link
Contributor Author

I've refactored the code as per your suggestion, @melloware , Thank you for your recommendation, and I've tested the changes accordingly.

@harundemr
Copy link
Contributor Author

@tugcekucukoglu could you please review my PR? Thanks

@tugcekucukoglu tugcekucukoglu merged commit e980ac7 into primefaces:master Dec 13, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dropdown: Editable dropdown doesn't open when typing on a mobile device
4 participants