slider icon indicating copy to clipboard operation
slider copied to clipboard

@change event comes before underlying model has been changed

Open snscaimito opened this issue 2 years ago • 2 comments

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.

snscaimito avatar Dec 30 '22 19:12 snscaimito

same is use in template variable, i have a lags

reslear avatar Feb 04 '23 22:02 reslear

I have worked around this using nextTick.

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

sunscreem avatar Aug 20 '23 11:08 sunscreem