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

@change event comes before underlying model has been changed #70

Open
snscaimito opened this issue Dec 30, 2022 · 2 comments
Open

@change event comes before underlying model has been changed #70

snscaimito opened this issue Dec 30, 2022 · 2 comments

Comments

@snscaimito
Copy link

In a Vue3 app I need to modify a value in an object based on slider change. I get the event, read the v-model and find the old value while in the event handler. If I add a slight delay, like 100ms, the v-model object gets updated and also reflects the change slider value.

@reslear
Copy link

reslear commented Feb 4, 2023

same is use in template variable, i have a lags

@sunscreem
Copy link

I have worked around this using nextTick.

async function update() {
  await nextTick();
  console.log(range.value);
 };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants