2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-26 04:34:04 +03:00
Commit Graph

161 Commits

Author SHA1 Message Date
Jeff Sagal a0c8efe0e5 Merge pull request #512 from eriknygren/fix-unexpected-wrapping-on-single-select
Fixing unexpected linebreak on single selects
2018-07-19 08:57:28 -07:00
Erik Nygren 16b6bd7d09 Fix hidden input when reselecting in single mode
What
---
- Removing hidden class from single inputs when the dropdown is hidden.
- Changing from `display:none` to zero width when hiding the input.

Why
---
Because the user will be typing for another element if reopening the
dropdown, which we need to allow.
2018-06-15 19:02:20 +01:00
Todd Baur 62adbb47b6 allow component to inherit font family choices
I ran into this issue where the component was using the browser's default san-serif font, which of course we don't use. This will allow it to just take the font from the application its used in and continue on without much friction.
2018-06-07 21:01:59 +09:00
Erik Nygren 970d1da3c2 Fixing unexpected linebreak on single selects
What
---
- Hiding the search input field if the component is in the single value
option.
- Making the search input field full width if no options are selected in
	either single or multi select mode.
- Shrinking it to width auto if there are selected entries in multi
	mode.
Why
---
The component broke into two lines when selecting a a value in single
mode, because an empty, non-interactable input field was pushed down to
the next row if the selected entry had a long label.
2018-04-18 13:22:11 +01:00
Damien Bezborodov 50c4edef14 Clear button flag.
New prop, 'clearable': Can the user clear the selected property?

Usage, :clearable="false" (defaults to true.)

See issue #463.
2018-02-23 21:57:25 +10:30
enid-colic cd53e5d1c4 Disable browser autocomplete FIX 2018-01-23 21:41:47 +01:00
Jeff b3a551c836 never deselect options from the dropdown 2018-01-23 08:48:23 -08:00
Jeff 58690791e8 Merge pull request #421 from MarZab/issue-350
The temporary option when using taggable should be a Object
2018-01-18 09:02:17 -08:00
Jeff 860e4391b0 Merge pull request #420 from sagalbot/feature/customize-tags
Custom Label Slot
2018-01-15 20:06:12 -08:00
Jeff a3f62ad733 Merge branch 'feature/custom-filter'
# Conflicts:
#	dev.html
#	yarn.lock
2018-01-15 20:02:51 -08:00
Marko Zabreznik 592df533b7 Fix for https://github.com/sagalbot/vue-select/issues/350
Builds on https://github.com/sagalbot/vue-select/pull/420 and fixes the string options array edge case.

Added dev.html example.
2018-01-13 11:53:34 +01:00
Jeff 9a0d2d2e71 - add dev example
- expand slot props to include `multiple`, `disabled`
2018-01-13 00:39:40 -08:00
Jeff 4095643047 Merge branch 'pr/352'
# Conflicts:
#	src/components/Select.vue
2018-01-13 00:32:26 -08:00
Jeff 2cffee27f6 rename filterMatch to filterBy 2018-01-12 22:53:13 -08:00
Jeff f530ab952b update jsdoc 2018-01-12 22:48:12 -08:00
Jeff 2646525f4a rename filterComparator to filterMatch, fix tests 2018-01-12 22:44:00 -08:00
Jeff 21ec385718 - add filter function prop
- rename `filterFunction` to `filterComparator`
- add dev example using fuse.js
- update jsdocs
- update tests
2018-01-12 22:39:04 -08:00
Jeff 81a99536f7 Merge branch 'master' into feature/custom-filter
# Conflicts:
#	dev.html
#	src/components/Select.vue
#	src/dev.js
2018-01-12 18:59:27 -08:00
Jeff 8063da9a21 Merge pull request #378 from SKalt/patch-3
Custom filter function, now with tests
2018-01-12 18:55:24 -08:00
Jeff aca7b5a248 add filter prop allowing full customization of filtering 2018-01-12 18:23:46 -08:00
Jeff 9c96a965a2 adjust clear button position 2018-01-09 09:28:41 -08:00
Jeff e5498bb748 Merge pull request #368 from andywarren86/clear-button
Add clear button to single select
2018-01-09 09:20:27 -08:00
Jeff 56bfd68051 use pointer on hover for unsearchable inputs 2018-01-06 17:05:45 -08:00
Jeff 9ade828e8e - remove float on search input
- hide unsearchable input
2018-01-06 16:53:03 -08:00
Jeff 5d5acb7a55 Merge pull request #385 from sagalbot/issue/324
disable autocomplete
2017-12-09 10:26:39 -08:00
Jeff 73e67a673b - add dev example
- rename `filterOptions` prop to `filterable`
- update tests
2017-12-09 09:50:30 -08:00
Jeff 283cb4f49b Merge pull request #386 from alfatraining/add-prop-to-disable-option-filtering
Add prop to disable option filtering
2017-12-09 09:43:49 -08:00
Eleftherios Pegiadis ad06e313df Make filter options to not affect taggable vSelects 2017-12-06 14:07:56 +02:00
Jeff 926899353d disable autocomplete
fixes #324
2017-12-05 17:08:54 -08:00
Daniel Lohse 2bf2661405 Add option to disable filtering options by the search text
If the filtering is done on the server-side or the search text isn't
contained in the option text then this should be set to `false`.
2017-12-05 18:12:36 +01:00
Jan-Willem 9b8b4dcc80 Add tabindex support 2017-11-27 10:16:41 +01:00
Andrew a9ae09edc0 Add clear button to single select 2017-11-05 13:18:25 +11:00
Unknown e30a000dda valueAsArray to handle passed arrays
In the test suite sometimes a mutableValue array is passed when `multiple == false`. Using [].concat rather than an array literall allows valueAsArray to handle these cases.   [].concat could handle the case when `multiple == true` as well.
2017-10-26 12:26:00 -04:00
Unknown 57c084dd8b fallback truthiness check on option label
In case getOptionLabel somehow returns undefined. Overkill, but inexpensive overkill.
2017-10-26 12:18:30 -04:00
Unknown 014c51d1e7 Stylistic changes to getOptionLabel() default console.warn
Split into multiple lines, included stringified defective option object.
2017-10-26 12:16:54 -04:00
Steven Kalt 9a74882904 Merge branch 'master' of https://github.com/sagalbot/vue-select into patch-3 2017-10-26 11:28:07 -04:00
Thom Hurks cbdc5982fd Add a higher level slot to labels so they can be customized completely 2017-10-23 22:16:41 +02:00
Andrew d6b822771b Prevent removal of items when disabled 2017-10-20 21:18:57 +11:00
Jeff 33491adef7 Merge pull request #249 from SpyTec/patch-1
Prevent submitting inside form
2017-10-01 17:07:54 -07:00
Jeff 8680a3daa7 remove old css 2017-10-01 16:25:27 -07:00
Jeff d9fd2fd36d improve RTL support 2017-10-01 16:20:34 -07:00
Jeff d1e6fdd38e Merge branch 'master' into master 2017-10-01 15:55:03 -07:00
Jeff 50f9bcc782 Merge pull request #297 from meteorlxy/patch-2
Add loadingText and noMatchText.
2017-10-01 15:34:23 -07:00
Jeff 64fda95663 - add disabled example
- fix rounded corners transition flash
2017-10-01 13:57:51 -07:00
Jeff 93d06b5f87 remove type attribute from div 2017-10-01 13:47:56 -07:00
Jeff b8b5e59e54 Merge pull request #118 from evanslify/master
Add option to disable the entire component
2017-10-01 13:46:51 -07:00
Jeff 008253da72 Merge branch 'master' into master 2017-10-01 13:37:43 -07:00
meteorlxy f3309ae708 Revert the props changes. Keep the changes for comments. 2017-08-30 04:39:06 +00:00
meteorlxy 04f77fedb2 Add custom filter function 2017-08-27 03:04:36 +00:00
meteorlxy 4247b4dfc1 Combine #295 and #296 2017-08-26 22:08:28 +00:00