Skip to content

ion-searchbar bug on 3.1.0, 3.1.1, 3.2.0 for non-latin languages. #11566

Closed

Description

@kelvinhokk

Ionic version: (check one with "x")
[ ] 1.x
[ ] 2.x
[ X] 3.x

I'm submitting a ... (check one with "x")
[X ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:

Replication environment: Mac OS X (for PWA)
Different behaviours in Chrome 58.0.3029.96 and Safari Version 10.1 (12603.1.30.0.34) (see videos)

Currently I have replicated the bug on the ionic-preview-app on ionic versions 3.1.1, 3.1.0, 3.2.0

The bug does not happen on 3.0.1.

Description: The key up on the ion-searchbar seems to be broken since 3.1.0 onwards for non latin keyboards. For example I am using a chinese Hanyu pin yin keyboard to type "青山" (qingshan).

However on Safari, the ion-searchbar goes like "qqqiqiqingqinqingqing sqing sqing shqing... ". See video.
On Chrome, the ion-searchbar seems to dismiss the language bar intended to popup.

Expected behavior:

The ion-searchbar should work normally with the different language inputs.

See video.

Steps to reproduce:

  1. check out and build the ionic-preview-app and build

  2. ionic serve

  3. scroll to the ion-searchbar page.

  4. change input to chinese and type "qingshan". notice on Chrome the input for chinese does not appear, and on Safari multiple letters appear.

  5. Change package.json ionic-angular dependency to 3.0.1

  6. remove node_modules and npm install again

  7. notice that things work normally.

Related code:

insert any relevant code here

https://github.com/driftyco/ionic-preview-app

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

insert the output from ionic info here

Cordova CLI: 6.5.0
Ionic Framework Version: 3.0.1 (or 3.1.1 for the bug)
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.3.5
ios-deploy version: 1.9.1
ios-sim version: 5.0.2
OS: macOS Sierra
Node Version: v7.9.0

bug on safari
Bug on ion-searchbar on 3.1.0 and 3.1.1

expected behaviour
Expected behaviour

Activity

  1. jgw96 commented on May 9, 2017

    @jgw96
    Contributor

    Hello, thanks for using Ionic! We will look into this.

  2. miz-k commented on May 10, 2017

    @miz-k

    I've also encountered the same symptom after using 3.1.0. when ion-searchbar had worked correctly with 2.x

  3. changed the title [-]ion-searchbar bug on 3.1.0 and 3.1.1 for non-latin languages.[/-] [+]ion-searchbar bug on 3.1.0, 3.1.1, 3.2.0 for non-latin languages.[/+] on May 11, 2017
  4. nishizhen commented on May 18, 2017

    @nishizhen

    we have the same bug~~~~

    But , this bug just fire on IOS and IOS simulator .
    Android works fine!

  5. puku0x commented on May 18, 2017

    @puku0x

    I faced the same bug too during inputting Japanese.

    I could solve this by replacing from (input) to (change) in https://github.com/driftyco/ionic/blob/master/src/components/searchbar/searchbar.ts#L37 .

  6. woodstream commented on May 19, 2017

    @woodstream

    I had compared this version3.0.1 and version3.2.1 that I found to modify this function "Searchbar.prototype._inputUpdated" can fixed it

  7. jgw96 commented on Jun 1, 2017

    @jgw96
    Contributor

    Hello all! This is going to be fixed in the next release of ionic in this pr #11586

  8. danielsogl commented on Jun 1, 2017

    @danielsogl
    Contributor

    @jgw96 you linked to an issue ^^

  9. DavidRyu123 commented on Jun 4, 2017

    @DavidRyu123

    @jgw96 It has a android and web issue too. When I type a Korean in ion-searchbar element, Korean alphabets show ㄱㅏㄴㅏㄱㄷㅏㄱ where it should be 가낙닥.
    Would you look into this issue too?
    Thanks.

    global packages:

    @ionic/cli-utils : 1.3.0
    Cordova CLI      : 7.0.1 
    Ionic CLI        : 3.3.0
    

    local packages:

    @ionic/app-scripts              : 1.3.7
    @ionic/cli-plugin-cordova       : 1.3.0
    @ionic/cli-plugin-ionic-angular : 1.3.0
    Cordova Platforms               : android 6.2.3 ios 4.4.0
    Ionic Framework                 : ionic-angular 3.3.0
    

    System:

    Node       : v7.7.2
    OS         : macOS Sierra
    Xcode      : Xcode 8.3.1 Build version 8E1000a 
    ios-deploy : 1.9.1 
    ios-sim    : 5.0.6 
    
  10. road1987 commented on Jun 6, 2017

    @road1987

    I faced the same problem too . when i am using chinese input method in input[text] . Looks like model would not change after blur event happen on the input box. If using english input method first , there is no problem .

  11. woodstream commented on Jun 28, 2017

    @woodstream

    it had fixed on 3.4.0

  12. lxieyang commented on Jul 26, 2017

    @lxieyang

    @woodstream I'm still facing the same issue.

  13. KevinHongSpigit commented on Jul 27, 2017

    @KevinHongSpigit

    Still getting error with 3.4.0

  14. tscislo commented on Aug 30, 2017

    @tscislo

    @DavidRyu123 did you managed to solve your problem? Was that fixed in recent version?

  15. DavidRyu123 commented on Aug 30, 2017

    @DavidRyu123

    @tscislo yep. It's solved with update.

  16. tscislo commented on Aug 30, 2017

    @tscislo

    Thanks it works for me as well in 3.4.2

  17. skygragon commented on Jan 30, 2018

    @skygragon

    I'm using 3.19.1, but still have this issue on IOS.

  18. FdezRomero commented on Jan 30, 2018

    @FdezRomero
    Contributor

    @skygragon That's the version for the Ionic CLI, you have to update ionic-angular on your project:

    npm install ionic-angular@latest --save
    
  19. ionitron-bot commented on Sep 1, 2018

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  20. locked and limited conversation to collaborators on Sep 1, 2018
  21. added
    package: core
    type: bug
    and removed
    package: core
    type: bug
    on Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions