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

[Bug Report] Autocomplete on clear sets variable to undefined and not null. This causes some unexpected behaviour when using nested objects as the value #6751

Closed
JamesDeegan opened this issue Mar 18, 2019 · 1 comment
Labels
duplicate The issue has already been reported

Comments

@JamesDeegan
Copy link

Versions and Environment

Vuetify: 2.0.0-alpha.8
Vue: 2.6.9
Browsers: Chrome 73.0.3683.75
OS: Windows 10

Steps to reproduce

Select a supplier
delete the supplier
notice how that completely deletes the supplier key: value from the form object

Expected Behavior

I expect the value to be set to null. so, supplier: null. Not for the key value pair to be entirely deleted

Actual Behavior

because autocomplete sets the bound value to undefined and not null, its deleting the key and value pair bound to it.

Reproduction Link

https://codepen.io/anon/pen/bZKjXW

@KaelWD
Copy link
Member

KaelWD commented Mar 19, 2019

Duplicate of #5722, #4144

key value pair to be entirely deleted

It isn't, JSON just doesn't have undefined: https://codepen.io/anon/pen/mojqmg?editors=1010

@KaelWD KaelWD closed this as completed Mar 19, 2019
@KaelWD KaelWD added the duplicate The issue has already been reported label Mar 19, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate The issue has already been reported
Projects
None yet
Development

No branches or pull requests

2 participants