quasarframework / quasar

Quasar Framework - Build high-performance VueJS user interfaces in record time
https://quasar.dev
MIT License
25.81k stars 3.51k forks source link

QInput with combination of dir="auto" & autogrow, caret position broken for rtl languages #9580

Open lyle45 opened 3 years ago

lyle45 commented 3 years ago

Describe the bug QInput with combination of dir="auto" & autogrow caret position broken for rtl languages

Codepen/jsFiddle/Codesandbox (required) Codepen

https://codepen.io/lyle45/pen/gOmzdox

To Reproduce Steps to reproduce the behavior:

  1. Caret position broken between words
  2. Either write in rtl language and notice caret positon after pressing space
  3. Or try to position caret using mouse anywhere in the text and caret position would break although visually only (caret is in correct place in hidden input)

Expected behavior Caret should be placed correctly

Screenshots

Platform (please complete the following information): Quasar Version: 1.15.19 @quasar/app Version: 2.2.8 Quasar mode:

Tested on:

OS: Mac Os Big Sur 11.4 & Android Oxygen OS 10.0.1 Node: NPM: Yarn: Browsers: Chrome iOS: Android: Electron:

Additional context Add any other context about the problem here.

pdanpdan commented 3 years ago

A working reproduction codepen: https://codepen.io/pdanpdan/pen/qBmOQzE?editors=101

lyle45 commented 3 years ago

@pdanpdan Try adding autogrow boolean to it Think you confused autofocus with autogrow

pdanpdan commented 3 years ago

I can reproduce it, i just changed the codepen because now the default is quasar v2

lyle45 commented 3 years ago

@pdanpdan ok, but in the codepen you posted there is no autogrow and the bug isn't reproducing (for me) 🤷

pdanpdan commented 3 years ago

Oh, fixed, thank you.