ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

Input's Cursor is Jumping on Safari

Open m1trix opened this issue 5 years ago • 6 comments

Describe the bug On Safari, when an ui5-input (and input-based components) already has some value and you start typing anywhere other than the very end, at some point the cursor jumps to the very end. The issue only appears if you write relatively fast (on some components like MultiComboBox, it always happens)

To reproduce Steps to reproduce the behaviour:

  1. Go to the Input documentation page
  2. Click on any example
  3. Write down some text
  4. Put the cursor somewhere in between the text
  5. Start typing relatively fast

Isolated example Any input on the Input documentation page

Expected behaviour The cursor should remain where it is.

Screenshots safari-jumping-cursor

Context

  • UI5 Web Components version: 1.0.0-rc.10 & 1.0.0-rc.11 (I haven't tested on older versions)
  • OS/Platform: MacOS 11.1
  • Browser (if relevant): Safari 14.0.2
  • Other information: N/a

Affected components (if known) Input, MultiInput, ComboBox, MultiComboBox (with free text enabled), potentially others

Log output / Any errors in the console No errors are logged

Organization: SAP

Priority: (optional) High

Setting priority would indicate the importance of the issue and would help the process of dispatching and processing.

To set the appropriate priority, you need to consider the impact and if the issue:

  • Breaks entire application or system - High and Very High
  • Is accessibility one (Screen Reader, Keyboard Handling) - Medium and High
  • Is functional one and makes a single component unusable - Medium and High
  • Is visual, styling one - Low and Medium

Note: the priority would be re-evaluated by the issue processors, according to the project internal criteria

Business impact: (mandatory for "Very High") Safari users will have bad time inserting text into these components.

m1trix avatar Jan 06 '21 08:01 m1trix

It seems to be also happening when a suggestion shows up. safari-jumping-cursor-2

m1trix avatar Jan 06 '21 08:01 m1trix

Might be related to #1761

fifoosid avatar Jan 06 '21 08:01 fifoosid

Hello @SAP/ui5-webcomponents-topic-rl I am forwarding this Input issue to you.

ilhan007 avatar Jan 08 '21 05:01 ilhan007

This issue affects Combobox and MultiComboBox on Safari as well

fifoosid avatar Jan 08 '21 10:01 fifoosid

This is an async issue related to row 903 of the Input.js

Martotko avatar Jan 26 '21 14:01 Martotko

Same as https://github.com/SAP/ui5-webcomponents/issues/4410

Browser issue. Looks like it is fixed in Safari Technology Preview (future version of Safari)

MapTo0 avatar Dec 09 '21 22:12 MapTo0