Skip to content
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] beta.19 Slider lazy input @change not called on Android #3995

Closed
ANPetru opened this issue Apr 29, 2019 · 8 comments

Comments

Projects
None yet
2 participants
@ANPetru
Copy link

commented Apr 29, 2019

Software version

Quasar: 1.0.0-beta.19
@quasar/app (v1+ only): 1.0.0-beta.20
OS: Linux Arch
Node: 11.12.0
NPM: 6.7.0
Android: 8

What did you get as the error?

The missfunctiolallity appears when using an slider on lazy mode.
When clicking on it, the slider pointer changes but the @change event is not fired, so the value is not updated.

What were you expecting?

When user clicks, the event should be called. This behaviour works correctly on browser.

When user slides then realeses, it works correctly.

@rstoenescu

This comment has been minimized.

Copy link
Member

commented Apr 29, 2019

May I ask for a codepen with your exact usage, pls?

@ANPetru

This comment has been minimized.

Copy link
Author

commented Apr 30, 2019

https://codepen.io/anon/pen/YMMbLX

The issue happens when clicking once (not sliding), on Android

@rstoenescu

This comment has been minimized.

Copy link
Member

commented Apr 30, 2019

@ANPetru on your codepen you don't feed the model to the component in any way. Something missing?

@ANPetru

This comment has been minimized.

Copy link
Author

commented Apr 30, 2019

With the @change event I call the method that changes the variable's value. I need the value from before the user started sliding and after he stopped sliding

@rstoenescu

This comment has been minimized.

Copy link
Member

commented Apr 30, 2019

@ANPetru QSlider needs to be fed a model, regardless of what you do afterwards. Your usage is incorrect. Create a model (put minimum value in it), then feed it to QSlider.
Right now, your usage is: "I got a QSlider with no model, but I want to x, y, z"
I was especially interested in finding out how you feed the model (through :value or through v-model), so I can explain more.

@rstoenescu

This comment has been minimized.

Copy link
Member

commented May 1, 2019

Correct usage as per my comments above: https://codepen.io/rstoenescu/pen/zXVNJO?&editable=true&editors=101
Please reopen if the above example does not works. I've tested it on all platforms and it does work.

@rstoenescu rstoenescu closed this May 1, 2019

@rstoenescu rstoenescu reopened this May 1, 2019

@rstoenescu

This comment has been minimized.

Copy link
Member

commented May 1, 2019

Ok, I saw what you mean. Will fix it.

@rstoenescu

This comment has been minimized.

Copy link
Member

commented May 1, 2019

Fix will be available in beta.21.
Thanks for reporting.

@rstoenescu rstoenescu closed this May 1, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.