when using vue.js, selected state should be set by vue.js, so it would be good to disable this.
Hacky solution was to just set selected to []:
->add('last_name', 'text', [
'label' => 'name',
// https://www.reddit.com/r/vuejs/comments/4tdevt/why_doesnt_this_work_with_vue_2/
// NOTE: if you don't provide 'selected' option here, then the form
// builder adds the 'selected' attribute to the first option.
'selected' => [],
'empty_value' => 'Please select a prop'
])
when using vue.js, selected state should be set by vue.js, so it would be good to disable this.
Hacky solution was to just set
selected
to[]
: