ISSUE DESCRIPTION defineModel on Firefox does not work as expected Vue version 3.5.17…
- User
ISSUE DESCRIPTION
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
shellSystem: 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.
ADDITIONAL ADVICE
Since you are given a git repository, you can use git commands to simplify your work. For example, if you made a mistake and want to revert your changes, you can use to restore the file to its original state. You can also reset all changes in the repository using command. Additionally, you can use and to temporarily save your changes and restore them later. Finally, you can see the changes that you've made (which will be submitted when you call ) using or commands. However you don't need to use or before submitting your changes. In fact, only submits currently unstaged changes because it uses to get the changes that need to be submitted.
Assistant
Now let's update the force-trigger condition:
Assistant
Now let's re-run our repro test to confirm the fix works:
Assistant
The fix works. Now let's clean up and run the existing test suites to make sure nothing is broken.
Assistant
All existing tests pass. Let's also run vModel directive tests and broader runtime-core test suite for good measure.
Assistant
All pass. Now let's run the full runtime-core test suite to be thorough:
Assistant
This confirms it's a flaky performance-timing test unrelated to our change (passes in isolation; environment load affected timing in the full run). Let's view the final diff:
Assistant
Need jsdom environment annotation:
Assistant
Good, local-only model mode still works fine, including the batched-set edge case. Let's clean up the temp test file.
Assistant
Let's also verify the
options.set(custom transform) + batch scenario combined to make sure nothing regresses there, and re-check the full useModel test file plus defineModel compiler tests once more.Assistant
Works correctly. Let's clean up and do a final full re-run of the useModel/vModel test suites plus final diff review.
Assistant
All tests pass and the working tree only contains our intended fix.
Assistant
No leftover temp files. Now let's go through the checklist.
Checklist review:
Assistant
Assistant
This looks complete and correct. Let's submit.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.