2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-17 02:29:37 +03:00

836 Commits

Author SHA1 Message Date
Jeff Sagal 5343b523d6 add npmignore (#998)
* add npmignore

* use a glob
2019-11-29 09:43:10 -08:00
Jeff Sagal 22bf8f9475 Create FUNDING.yml (#997) 2019-11-14 12:21:14 -08:00
Jeff Sagal 619771d0f0 create selectable docs (#996) 2019-11-14 12:18:40 -08:00
Jeff Sagal 1d024d6ad1 refactor toggleDropdown click handler (#992) 2019-11-14 11:05:05 -08:00
Jeff Sagal a85181b5fb Merge pull request #989 from sagalbot/push-tags-create-option-bug
pull $emit out of create-option function
2019-11-09 14:21:45 -08:00
Jeff cde2316e4f pull $emit out of create-option function 2019-11-09 14:19:19 -08:00
Jeff Sagal fd218db450 Merge pull request #962 from CK159/master
Fix unclickable dead zones around dropdown and dropdown arrow
2019-11-08 18:11:07 -08:00
Jeff Sagal fb85715209 Merge pull request #985 from sagalbot/add-bundlewatch
Add BundleWatch
2019-11-08 12:14:38 -08:00
Jeff ed9ea0340c set max size 2019-11-08 12:12:26 -08:00
Jeff 1f51116ed6 ignore map files 2019-11-08 11:58:28 -08:00
Jeff 6eb42f3415 use CLI options instead 2019-11-08 11:54:02 -08:00
Jeff edf36332ca locked 2019-11-08 11:50:49 -08:00
Jeff 81339694b7 add bundlewatch 2019-11-08 11:50:35 -08:00
Jeff Sagal 1a5ba31c68 Merge pull request #984 from sagalbot/fix-chrome-search-input-css
Fix Chrome search-cancel-button
2019-11-08 11:31:22 -08:00
Jeff 941f6187b9 Closes #886 2019-11-08 11:23:43 -08:00
Jeff 38f291ab99 @search instead of on-search 2019-11-08 10:56:46 -08:00
Jeff Sagal 92658a31ad Merge pull request #971 from sagalbot/fix-956-event-delegation
WIP Event delegation for #956
2019-11-08 10:51:22 -08:00
Jeff 1e6b0e98d0 add keycodes note 2019-11-08 10:50:36 -08:00
Jeff a87cb3317e complete documentation 2019-11-08 10:43:36 -08:00
Jeff Sagal 99f2dfdc0a Merge pull request #983 from sagalbot/dont-strip-warnings
Don't stip console.warn from the build
2019-11-07 19:36:29 -08:00
Jeff e7103fc5bd don't drop console when minify 2019-11-07 19:33:23 -08:00
Jeff Sagal 0a589704f8 add v-for docs (#982) 2019-11-07 18:15:41 -08:00
Jeff af424159f7 update docs 2019-11-07 17:15:48 -08:00
Jeff 8cce5e0ea2 add support for composing #900 2019-11-07 15:45:12 -08:00
Jeff bc5d0d9e4a remove unused file 2019-11-07 14:10:10 -08:00
Jeff 2ca2f3094b add selectOnKeyCodes prop, add tests 2019-11-07 14:08:37 -08:00
Jeff 877e6a3c85 reset dev env 2019-11-07 12:40:43 -08:00
Jeff Sagal b684cf1a6e add prepare (#980) 2019-11-06 14:56:25 -08:00
Jeff c6c8281f6f add dropdown transition docs 2019-10-26 13:58:14 -07:00
Jeff 610193afdf fix selectable tests 2019-10-26 13:23:43 -07:00
Reed Jones 1aef52ade4 Update slots.md (#959)
remove deprecated slot="" scope-slot="" syntax
2019-10-26 11:43:57 -07:00
Markus b8fbefdc2d fix unclosable select dropdown when clicking on dropdown (#949)
The reason for the bug was: clicking on the area blurred the search
input. vue-slect relies on this event to close the dropdown.
Since the click happend inside the dropdown, it did not
close (which is correct). Though now the search input was blurred
already, so clicking outside of the dropdown had no effect. Be
preventing event propagation, the input does not get blurred anymore
when clicking inside the dropdown and everything still works.
2019-10-26 11:42:50 -07:00
Jeff 8d9905c3dc whoops 2019-10-25 18:48:46 -07:00
Jeff 4f409522de add docs 2019-10-25 18:47:33 -07:00
Jeff 74917d2a5a refactor, bit cleaner API 2019-10-25 18:07:45 -07:00
Jeff 7c66f75579 WIP potential spec for #956 2019-10-25 13:59:23 -07:00
Toby Zerner ceb42b4950 Change all keyup events to keydown (#935)
For a few reasons:

- event.preventDefault() for the Enter key (to stop it from submitting
  the form when you select an item) is only effective if it's a keydown
  event.

- Using keydown for up/down navigation means you can hold them down to
  rapidly scroll through a lot of items.

- Keydown events make the UX feel more responsive, and is consistent
  with how most apps/operating systems handle key presses.
2019-10-25 13:12:59 -07:00
Markus aea81a6f5c Allow to disable options with selectable function (#921)
* allow to disable options with selectable function

* add simple spec for new selectable option

* Prevent non-selectable options from being keyboard navigatable
2019-10-25 13:11:50 -07:00
Alex c9c4872f5a Fix unclickable dead zones around dropdown and dropdown arrow 2019-10-07 00:11:23 -04:00
Jeff 17c1d3db97 🚀 v3.2.0 v3.2.0 2019-09-14 14:01:37 -07:00
Jeff Sagal dff8f750a7 Reduce null values (#940)
* support falsey values with reduce

* support null values with reduce
2019-09-14 13:53:16 -07:00
Toby Zerner aecbde8343 Fix dropdown-toggle not being registered correctly as a mousedown target (#934) 2019-09-13 15:31:37 -07:00
Jeff Sagal 305801e37f support falsey values with reduce (#939) 2019-09-13 15:28:33 -07:00
Jeff 79577b4bae fix typo 2019-09-13 13:13:37 -07:00
Jeff 2a0efcf5a5 bump package details 2019-09-13 13:12:56 -07:00
Jeff Sagal 1586dbb908 add tests (#938) 2019-09-13 12:53:13 -07: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 8ef15a12d3 fix code snippet paths (#879) 2019-05-15 17:59:47 -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
Jeff Sagal 7b70b966ff add required validation doc (#868) 2019-05-03 12:12:43 -07:00