defineModel on Firefox does not work as expected Vue version 3.5.17 Link to minimal…
- User
defineModel on Firefox does not work as expected
Vue version
3.5.17
Link to minimal reproduction
Steps to reproduce
- Use firefox
- Enter anything in the field. It should be blocked and only show "a", but it wont on firefox.
What is expected?
It should only keep "a" and nothing else should "make it through"
What is actually happening?
Seems like either a race condition or firefox not updating at the same time as Chrome? no clue.
System Info
System: OS: Windows 11 10.0.26100 CPU: (20) x64 Intel(R) Core(TM) i5-14600K Memory: 12.60 GB / 31.77 GB Binaries: Node: 22.16.0 - C:\nvm4w\nodejs\node.EXE npm: 10.9.2 - C:\nvm4w\nodejs\npm.CMD Browsers: Edge: Chromium (134.0.3124.85) Internet Explorer: 11.0.26100.1882 -- Its not showing my actual browser: Firefox 139.0.4Any additional comments?
No response
Interface
No new interfaces are introduced.
- Assistant
I’ll trace the
defineModel/v-modelupdate path and existing browser-focused tests, then patch the smallest underlying issue and run the relevant suite. - Assistant
rgisn’t installed in this checkout, so I’m switching tofind/grepand checking the repository guidance before editing. - Assistant
The reproduction exposes a same-tick round trip: the native
v-modelbriefly emits the typed value, then the user handler restores"a". Because the parent ends the tick at its previous value, no prop patch is scheduled; the input therefore needs a forced local render fromuseModel. I’m adding a regression for that exact sequence before changing the trigger condition. - Assistant
The regression now restores the rendered input after the same-tick revert. I’m validating the focused suite, then the broader runtime-core tests and type/lint checks to catch scheduler or formatting regressions.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.