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

322 Commits

Author SHA1 Message Date
Jeff Sagal 93c479e972 fix: don't allow empty strings to be selected (#1595) 2022-02-19 11:29:03 -08:00
Jeff Sagal 3565bc303a refactor: use explicit file extensions in imports (#1587) 2022-02-18 14:24:01 -08:00
Jeff Sagal a1944e09e8 fix: allow selecting boolean values (#1518) 2022-02-18 12:51:29 -08:00
Jeff Sagal 115f24aba2 fix: allow typeAheadSelect only when option is selectable (#1529) 2022-02-17 16:57:27 -08:00
Jeff Sagal 1ecf71aa4b feat: deprecate sass, convert to css (#1531) 2022-02-17 12:21:27 -08:00
Mehdi ghasemi 5c09d6ffba feat: set pointer to most recent selected option on open (#1574)
Co-authored-by: Jeff Sagal <sagalbot@gmail.com>
2022-02-17 12:02:24 -08:00
Jeff Sagal 129bfd7034 feat: add $vs-component-bg to sass variables (#1528)
#1490
2021-10-20 09:31:37 -07:00
Jeff Sagal e8d7abbf33 refactor: use an immediate watcher instead of created hook for reduce (#1523) 2021-10-18 13:35:36 -07:00
Flo Edelmann b7d1f70985 fix: vs__selected position set to absolute while loading with empty search value (#1396) 2021-10-18 10:06:59 -07:00
Jeff Sagal 44e1eec53d docs: remove reference to @change event (#1521)
Closes #1115
2021-10-17 13:44:49 -07:00
The Jared Wilcurt bf8be2ec26 feat: move uid to props (#1362)
* Add uniqueKey prop

* move uid to prop

* Update props.md

Co-authored-by: TheJaredWilcurt <4629794+TheJaredWilcurt@users.noreply.github.com>
Co-authored-by: Jeff Sagal <sagalbot@gmail.com>
2021-10-17 10:04:51 -07:00
andreas 68da1c172e feat: add deselectFromDropdown boolean prop (#1033) 2021-10-17 09:47:06 -07:00
Flo Edelmann d4c7be4fbc fix: always set cursor CSS property, not just on hover (#1517) 2021-10-15 14:34:30 -07:00
Jeff Sagal 766a2cb7b2 fix: autoscroll should scroll to item when opening dropdown (#1513) 2021-10-06 10:57:36 -07:00
Yilmaz b965b3b195 fix(filtering): transform letters to locale specific cases (#1511) 2021-10-06 09:51:43 -07:00
Jeff Sagal 4230bba934 feat: add vs--multiple state class for multiselects (#1484) 2021-08-26 12:46:27 -07:00
HckrNews 58905e1659 fix: use click instead of mousedown event, fixes iOS bug (#1248)
Thanks to @PieterWigboldus for originally reporting in #814 and fixing in #815.

Co-authored-by: Jeff Sagal <sagalbot@gmail.com>
2021-08-23 13:50:06 -07:00
Jeff Sagal dd281aa8c6 refactor: apply eslint fixes (#1469) 2021-08-01 12:30:50 -07:00
Daniel Molnar 0f763f3ac4 fix: set !default for $vs-controls-deselect-text-shadow (#1468)
- added missing `!default` for $vs-controls-deselect-text-shadow,
  which was the only one not having it
- `!default` is necessary in order to be able override the variable
2021-07-29 17:37:49 -07:00
Jeff Sagal 5e1ac1f5ec fix: no-options slot should use mutableLoading instead of loading prop (#1465) 2021-07-22 14:40:29 -07:00
Jeff Sagal 1676947319 feat: add dropdownShouldOpen prop (#1464) 2021-07-22 13:51:43 -07:00
Jeff Sagal 876992b1d3 fix: don't attempt to blur/focus search element if it doesn't exist (#1340) 2020-12-19 15:52:51 -08:00
jonny5532 e1e185dc0c fix: Add tabindex="-1" to dropdown-menu to prevent scrollbars receiving focus (#1304)
Co-authored-by: Jonny <jonny@jonnybarker.com>
2020-12-18 14:34:17 -08:00
Tiago Roldão 6e1c0dbcbd feat: option selection events (#1324)
- `option:selecting` before state is set
- `option:selected` after state is set
- `option:deselecting` before state is set
- `option:deselected` after state is set

Co-authored-by: tiagoroldao <troldao@assurehedge.com>
Co-authored-by: Jeff <sagalbot@gmail.com>
2020-12-18 12:18:34 -08:00
Rohith K P 8ccd336b0d fix(search-slot): use computed property as reference to search el (#1254) 2020-08-11 08:57:36 -07:00
Jeff Sagal dab5684489 fix(transitions): add key to dropdown ul (#1230) 2020-07-09 09:59:45 -07:00
Jeff Sagal dd6e00cb79 fix(appendToBody): Inverted X and Y bug correction (#1221) 2020-07-09 08:57:05 -07:00
Olivier JARRY e7109a08d5 bug(appendToBody): Inverted X and Y bug correction (#1221) 2020-07-08 15:39:21 -07:00
bertybot bfad3d00c6 fix(IE11): make appendToBody directive IE11 friendly
add a check for the IE implementation of scroll window variables so that the appendToBody Directive is compatible with IE 11
2020-06-25 10:45:01 -07:00
schelmo a21c973e53 fix(reduce): do not set $data._value in updateValue if reduce option is set
Closes #1210
2020-06-25 10:22:29 -07:00
Doug Kurucz e931f23ce6 fix: allow mouse events in the search input (#1092)
Co-authored-by: Doug Kurucz <doug.kurucz@twosixlabs.com>
Co-authored-by: Jeff <sagalbot@gmail.com>
2020-04-29 12:31:20 -07:00
Beni Rupp ed58352c2f fix: do not show cursor as pointer when unsearchable select is disabled (#1171) 2020-04-25 08:49:56 -07:00
inoric f47180cdae fix: fix keyboard option navigation skipping all items (#1165)
Fixes #1161. Navigating with up or down arrows would always go to first and last option, skipping
everything in between. Caused by missing break statements, probably deleted by accident.

#1161

Co-authored-by: Dino Pejaković <dino.pejakovic@voxdiversa.hr>
2020-04-17 15:26:30 -07:00
Jeff Sagal 2eb39087fd feat: add autoscroll boolean prop (#1160)
* feat: add autoscroll boolean prop

Fixes #449

* refactor: update autoscroll implementation

Closes #1028
Closes #910

* refactor: only call maybeAdjustScroll in the watcher

* docs: upgrade vuepress
2020-04-12 15:44:52 -07:00
Jeff Sagal f0e669c022 fix: create option not being called (#1158)
Closes #1156
2020-04-12 12:36:19 -07:00
Jeff Sagal 11306321a2 fix: add aria-activedescendant only when there is one (#1137) 2020-03-26 16:51:53 -07:00
Jeff Sagal f90a14470b fix: existing options should be selected with taggable (#1124)
Closes #1121
2020-03-20 09:31:59 -07:00
Hector Romero fea430df27 fix: use width from getBoundingClientRect as the default for calculatePosition (#1114)
* fix: use box-sizing: border-box; on dropdown menu

Co-authored-by: Jeff <sagalbot@gmail.com>
2020-03-19 10:12:32 -07:00
Bruno Dias 4c7e1e0426 fix: don't stop mousedown event on no-option slot (#1117) 2020-03-19 09:10:08 -07:00
andreas eedda74d43 fix: emit input event only if there is val to be deleted (#1038) 2020-03-15 19:17:25 -07:00
Jeff Sagal e6d0da6d52 feat: add open & close events (#1101) 2020-03-12 20:46:08 -07:00
Jeff Sagal 518e1919f8 fix(reduce): reduce + taggable bug (#1091)
Resolves #1089
Resolves #993
2020-03-10 21:10:58 -07:00
Jeff Sagal b2f388bc89 feat: header, footer, list-header, list-footer slots (#1085) 2020-03-09 21:56:37 -07:00
Rafał Gałka f2479434e4 fix: memory leak when positioning with popper (#1094)
* fix: memory leak when positioning with popper
* docs: update calculate position docs

Co-authored-by: Jeff <sagalbot@gmail.com>
2020-03-09 19:08:57 -07:00
Jeff Sagal bc9553a82e fix: Compare Options with getOptionKey instead of label + reduce (#1012) 2020-03-08 17:58:06 -07:00
Jérémie BORDIER fe51fec6b8 feat: calculated positioning (#1049)
Adds `appendToBody` and `calculatePosition` props.

https://vue-select.org/guide/positioning.html

Co-authored-by: Jeff <sagalbot@gmail.com>
2020-03-08 13:31:08 -07:00
Jeff Sagal be44b29ce2 feat: scope the no-options slot (#1083)
Resolves #1071, Resolves #1081

https://vue-select.org/guide/slots.html#improving-the-default-no-options-text
2020-03-05 08:35:38 -08:00
Jeff Sagal bc0d6d219d fix: Add and update WAI-ARIA 1.1 combobox propeties (#1068)
* Add aria 1.1 combobox properties

* Update dropdown test to account for v-show changes

* test: fix dropdown tests

* test: fix pointer scroll warnings

* refactor: implement uniqueId function

* fix: close #1072

remove empty button

Co-authored-by: Jeff Sagal <sagalbot@gmail.com>
2020-03-04 20:08:18 -08:00
Veli Dönmez 269479315f fix: disable pointer events while during transition 2020-03-01 16:36:01 -08:00
Bruno Dias ea8fdbf237 Allow user to control the behavior of clearSearchOnBlur. (#1060) 2020-02-23 12:44:47 -08:00