Open 12rambau opened 3 years ago
This is how Vuetify works, ipyvuetify does not change this.
This makes it not very usable with link
. We could make a special link
version in which you can specify a conversion function.
Are you sure that it's normal vuetify behaviour ? Because if I do the same in a select :
tutu = v.Select(items=climate_regimes, v_model=None)
then tutu.v_model
has the expected 0.8
value. Both api component have the same doc regarding the items
prop
It's indeed different for Select. I see now it's because of the prop return-object
that has a different default.
Is this solved by setting return-object
to False
on Combobox?
yes and no.
with :
tutu = v.Combobox(items=climate_regimes, v_model=None, return_object = False)
I effectively get the value
field in the tutu.v_model
but then what's written in the combobox is not the text
field of the dictionary but simply the v_model
which is not the behaviour observed with the Select component
If I read the documentation of Combobox, The items property can be a list of dict as :
when I use it in a ipyvuetify as such :
but when I check
tutu.v_model
after selecting the first option, I get:{'text': 'Temperate dry (coef = 0.8)', 'value': 0.80}
instead of the expected0.8