-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[V1] - QInput - keep autofocus working inside keep-alive scenario #12079
Conversation
I'm not very sure this is the right place to do a focus |
Actually we are doing many Form-rework for simpler step-by-step forms with only one input element. For simplicissity we are "sliding in the keyboard" on those panels. |
May it is better included inside the QField.js Source .. Don´t have the overview, which Form components are all |
…in keepAlive related to quasarframework#12079
…in keepAlive related to quasarframework#12079
@ibrainventures what patches do you use for your branch? |
Enhancement will be available in Quasar v2.4.11 and v1.17.6 |
Based on a 1.12.13 freezed Source there were 3 main topics to work-around: Layout + UI Comps.: limit the emit-noise / pollution Uploader : Same Filename (picture.jpg) can´t be selected twice Dialog : using the https:// github.com/ FL3NKEY /scroll-lock instead of the ios - body technique / upscroll .. All have side-effects on the SSR or allround-functionality .. So they are not PR compatible, |
@rstoenescu and @pdanpdan Thank you very much for this fast solution 👍 |
Background: Uploader : Same Filename (picture.jpg) can´t be selected twice The Smartphone Cam (Ios) name a captur-ed Image always with the same filename. |
QUploader should be fixed in this: #11610 |
Hi @pdanpdan ... Now with a workin autofocus on keepAlive-ed Pages, there comes on some Browsers According to the there is a option for the .focus method. If using: elem.focus([{ preventScroll: true }])` -------------> EDITED : NOPE the vue-router is respected. To not hardwire this feature, this should be controllable ..
|
Hmmm .. But .. good to know that there is a option for this behaviour .. May it is also |
:P :) |
okay .. i catched the control / browser differences over the effects and made a PR. The most nasty thing, was the transition distortion ..: The 2 effects with focus / autofocus (not only on keep-alived elements) Effect A: vue-router, savedPosition is not respected Effect B: Transition breaks immediatly (distortion during sliding ..) ------------------ Chrome Android: "Has" effect A (opens the Keyboard) + effect B ------------------ Chrome Windows: Has effect B ------------------ Firefox windows: has effect A + B ------------------ iOS safari: has only effect B |
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
The PR fulfills these requirements:
dev
branch (orv[X]
branch)fix: #xxx[,#xxx]
, where "xxx" is the issue number)If adding a new feature, the PR's description includes:
Other information: