igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

Japanese character is redundantly inserted into textbox on filter dialog on Safari

Open ymita opened this issue 8 years ago • 3 comments

Description

As Japanese character is being typed, typed characters are inserted repeatedly.

  • igniteui-angular version: 6.1.2
  • browser: Safari on iOS / OS X

Steps to reproduce

  1. Build the attached sample with the following command:
  • ng build --base-href "/my-app1/" --prod
  1. Host the attached sample on IIS (or serve it from your machine by ng serve --host 10.14.1.129 replacing the ip address with yours)
  2. Open the sample on iOS Safari
  3. Open the filter dialog on "name" field
  4. Type 'あ' (a on English keyboard)
  5. Type 'い' (i on English keyboard)

Result

'ああい' is inserted into the filter textbox

Expected result

'あい' is inserted into the filter textbox.

Attachments

my-app1.zip

Note

iOS version is 11.4.1 (15G77). This is not reproduced on Chrome on Windows 10.

ymita avatar Aug 06 '18 05:08 ymita

Browsers are using CompositionEvent to handle indirect text input such as Japanese. However CompositionEvent is not fully supported for Safari. That's the reason for this behavior. Probably the composition events are not fired in the proper order. Check the following link for more information: https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent

bkulov avatar Aug 10 '18 14:08 bkulov

@bkulov

The behavior is also reproducible on Chrome browser on iPad. It means this is not limited to Safari browser.

I also notice that the igx-input for grid's global filter has no problem typing Japanese characters on both Safari and Chrome. Can you consider fixing this behavior of igx-input on filter dialog? You can observe the difference using this online sample. https://www.infragistics.com/products/ignite-ui-angular/angular/components/grid_filtering.html

image

ymita avatar Aug 14 '18 03:08 ymita

@ymita thanks for the clarification. Will take a look.

bkulov avatar Aug 14 '18 07:08 bkulov