2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-20 03:09:36 +03:00
Commit Graph

9 Commits

Author SHA1 Message Date
Jeff 3a17e63df8 docs(api): pull doc generator into it's own repo/package 2019-11-29 09:32:27 -08:00
Jeff 5eb753d442 docs(slots): start work on parsing slot comments 2019-11-23 12:46:40 -08:00
Jeff c7e06ad1b3 docs(slots): generate slot documentation with extra properties 2019-11-22 17:43:19 -08:00
Jeff ad14fa3014 docs: autogenerate events, props 2019-11-21 13:00:50 -08:00
Jeff 17d360cbaf docs: generate sidebar from plugin, push API headings to search 2019-11-20 15:55:59 -08:00
Jeff 7c6addf308 docs: whoops - removed the docgen api module previously 2019-11-19 11:47:31 -08:00
Jeff 54c97c6c87 docs: first pass at auto-generating API docs for props 2019-11-19 11:10:49 -08:00
Markus ebcdcc5c62 Make sure selected value is an option after option changed and react to value property changes even if tracking value internally (#914)
* make sure selected tracked value is an option if possible

Before this case did not work correctly:

- Select was rendered with *no* options, but *with* a saved value
- Options were fetched by ajax and options prop was updated
- Reduce function if passed

What happens without this commit is that the selected tracked value
simply was the raw reduced value (previously saved). Which means that
displaying a label for example does not work if the label comes from the
unreduced option.

This commit makes sure that the internal tracked value is checked
against all options not only once the select is created but additionally
when options change.

* remove useless keys

- first key was always undefined
- second key was always the index which is not usefull at all since it
  changes based on the order

* add test for setting value after option changed

* correctly react to value property changes if tracking internally

fixes sagalbot#855, sagalbot#842

* add getOptionKey prop

* yarn upgrade doc

* add getOptionKey api doc and fix links

* yarn upgrade

* do not use key on slot

* fix label spec
2019-09-13 12:18:04 -07:00
Jeff Sagal 3928b015a9 Separate documentation dependencies (#874)
* separate documentation dependencies

* bump deps

* update netlify config and package scripts

* bump netlify

* add cross-env

* fix publish path
2019-05-05 16:51:23 -07:00