-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Closed
Labels
🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.🐞 bugSomething isn't workingSomething isn't working
Description
Version
3.0.7
Reproduction link
Vue 3:
https://codesandbox.io/s/distracted-ritchie-kdcwo?file=/src/App.vue
Vue 2:
https://codesandbox.io/s/focused-glade-qj11z?file=/src/App.vue
Steps to reproduce
Click the submit button in both sandboxes
What is expected?
The <option>
with value null
shouldn't be rendered as a string in Vue 3.
What is actually happening?
When you add a couple of <option>
, eventually an <option>
with value null
will be rendered as a it has a string value of null
.
<!-- Vue 2 -->
<select name="large">
<option value="">Not set</option>
...
</select>
<!-- Vue 3 -->
<select name="large">
<option value="null">Not set</option>
...
</select>
Metadata
Metadata
Assignees
Labels
🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.🐞 bugSomething isn't workingSomething isn't working