framework7io / framework7-vue

Deprecated! Build full featured iOS & Android apps using Framework7 & Vue
http://framework7.io/vue/
MIT License
674 stars 151 forks source link

Smart-Select after bind duplicates selected text label #373

Closed JCKodel closed 6 years ago

JCKodel commented 6 years ago

This is a (multiple allowed):

What you did

I created a smart-select with async items received by ajax (setTimeout in the fiddle above). Set the current smart-select value doesn't display the selected text (the recommended way to do this is to bind f7-list after prop to this text). In the documentation is also written that smart-select will use an existing .item-after div, if one exists.

Expected Behavior

Show an async selected value and be able to change it:

image

Actual Behavior

When you select another option, the bound after prop remains (so the smart select now have two .item-after)

image

I guess vue smart-select is failing to identify and apply a pre-existing .item-after div, thus, duplicating it.

nolimits4web commented 6 years ago

Yeah, it is better to use SS api to update value here https://jsfiddle.net/z2w60ntk/