fix(enterKeyHint): use a fixed enterKeyHint value on Samsung devices#916
fix(enterKeyHint): use a fixed enterKeyHint value on Samsung devices#916FabienMotte merged 10 commits intonextfrom
enterKeyHint value on Samsung devices#916Conversation
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit ec86a12:
|
francoischalifour
left a comment
There was a problem hiding this comment.
Great find—well done!
|
@francoischalifour when can I expect this to be merged? |
|
Hey @nitech, could you try this version on your app and tell us if this effectively fixes the issue for you? You can replace your Autocomplete dependencies with these versions in your
Example: {
// ...
"dependencies": {
"@algolia/autocomplete-js": "https://pkg.csb.dev/algolia/autocomplete/commit/e772e3af/@algolia/autocomplete-js",
"@algolia/autocomplete-theme-classic": "https://pkg.csb.dev/algolia/autocomplete/commit/e772e3af/@algolia/autocomplete-theme-classic"
}
}
|
sarahdayan
left a comment
There was a problem hiding this comment.
Final optimization, and then we'll be good to go!
|
@sarahdayan bug still present on user agent: Does Algolia Autocomplete allow me to turn off modifying enterKeyHint? |
This PR tries to fix #651.
Issue summary
On a Samsung device using Chrome Android with the Predictive Search feature enabled, the input value is reset when
enterKeyHintproperty is updated (between"search"and"go").Result
Based on the current user agent, we detect the device vendor (Samsung), type (mobile or tablet), OS (Android) and browser (Chrome). If all these conditions are matching (
samsung && (mobile || tablet) && android && chrome), we use a fixed"enter"value forenterKeyHintproperty.