Jeff Sagal
3024f13480
Bug/629 show selected value ( #631 )
...
* Show current selection before searching
* remove 'hidden' input class
remove left border on input, adjust padding
* Set 0 width for search input
2018-09-06 08:15:55 -07:00
Steven Harman
9262863514
Do not hide input while loading options. ( #621 )
...
Adding the `.hidden` class to the input while loading would cause it to
lose padding. This would cause the text to "jump" back and forth.
2018-09-05 07:23:36 -07:00
Jeff
e8e5eff553
Merge branch 'kball-add-select-on-tab-option'
...
# Conflicts:
# src/components/Select.vue
2018-08-07 21:16:44 -07:00
Jeff
237e946c19
Pull onTab up to prop, add test
2018-08-07 21:13:34 -07:00
Jeff
6866dee6b4
Merge branch 'click-tag-to-toggle-dropdown' of https://github.com/stevenharman/vue-select into stevenharman-click-tag-to-toggle-dropdown
...
# Conflicts:
# src/components/Select.vue
2018-08-07 20:58:13 -07:00
Jeff
3d819e55f7
Merge branch 'stevenharman-flexbox-based-layout'
...
# Conflicts:
# src/components/Select.vue
# test/unit/specs/Select.spec.js
2018-08-07 20:50:57 -07:00
Jeff
b0f58d7793
Merge commit 'b92428101f1c6d4aa1fe864a88eb7079c245e009'
...
# Conflicts:
# test/unit/specs/Select.spec.js
2018-08-07 19:47:13 -07:00
Steven Harman
76cfd7cad9
Clicking a selected tag toggles dropdown
2018-07-19 16:31:27 -04:00
Steven Harman
3ef668e078
Rely on flexbox adjusting input size
...
Except when "hidden", when we want it to to make it invisible, but still
focusable.
2018-07-19 15:25:52 -04: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
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
Jeff
b92428101f
fix isValueEmpty bug when working with integers
2018-01-28 17:54:25 -08:00
Jeff
79893024b5
- update getOptionLabel to be consistent when using index
...
- move index warning from getOptionLabel to `select` method
- update isOptionSelected, pull up object comparator to it's own method
- add test edge cases
2018-01-28 17:41:32 -08:00
Jeff
33b0e7e234
Merge branch 'master' into pr/423
...
# Conflicts:
# docs/gitbook/Basics/Options.md
2018-01-28 13:13:39 -08:00
Jeff
b3a551c836
never deselect options from the dropdown
2018-01-23 08:48:23 -08:00
Simone Todaro
76a90246d8
Add tests
2018-01-17 22:09:05 +00:00
Jeff
56394e6850
add test and example for filtering arrays of numbers
2018-01-12 23:22:24 -08:00
Jeff
2cffee27f6
rename filterMatch to filterBy
2018-01-12 22:53:13 -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
8063da9a21
Merge pull request #378 from SKalt/patch-3
...
Custom filter function, now with tests
2018-01-12 18:55:24 -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
cb324e0240
Revert "Fix linter"
2018-01-04 16:53:29 -08:00
Lexxus
4bf6c0ce44
Fix code style issues
2017-12-29 12:07:15 +02: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
602bffb90b
Add test cases for the filterOptions prop
2017-12-06 14:07:56 +02:00
Andrew
fcf9a8e8b7
Add tests
2017-11-30 19:35:18 +11:00
Andrew
5465b77436
Add tests
2017-11-30 19:06:30 +11:00
Steven Kalt
47750233ba
added test of custom filter function
2017-10-26 12:45:12 -04:00
Unknown
10e8516639
Killed production tip in spec
2017-10-26 12:20:04 -04:00
Unknown
a7562402c7
Modified spec to include warning of defective options objects
2017-10-26 12:19:23 -04:00
Andrew
d6b822771b
Prevent removal of items when disabled
2017-10-20 21:18:57 +11:00
Jeff
199701507c
fixes tests from #249
2017-10-01 17:09: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
072bf4160d
Merge pull request #171 from fidgetwidget/non-multiple-improvements
...
Added features to non multiple selects
2017-04-24 11:23:34 -07:00
Brandon Bey
1f8b30164e
Added code coverage for the additional logic.
2017-04-03 12:32:31 -07:00
Kori Roys
ecd76ce4dd
improving name for should-dropdown-close option. adding test
2017-04-01 12:07:19 +02:00
Kori Roys
897b0d8fb2
Add option to allow closing a multi-select when a value is selected
2017-03-31 15:10:24 +02:00
Evans Y
76fe00f956
Merge branch 'master' into master
2017-03-24 16:10:25 +08:00
Jeff Sagal
bae486a8e3
- move mutableLoading data property to ajax mixin
...
- open dropdown only when not loading
- add watcher to keep loading synced with mutableLoading
2017-03-22 18:33:32 -07:00
es
e6c5967cf8
Merge remote-tracking branch 'upstream/disable-component'
2017-03-22 10:36:18 +08:00
es
cb2883fcd6
Merge remote-tracking branch 'upstream/master'
2017-03-21 15:23:05 +08:00
Jeff Sagal
546418da1f
- fix variable reference (showLoading should have been mutableLoading) in ajax mixin and specs
...
- add `search` event fired at same time as callback
2017-03-16 15:38:40 -07:00
Jeff Sagal
f67a352481
throw console warning if option[label] does not exist, prevents TypeError from breaking page
...
closes #155
2017-03-09 12:55:44 -08:00
Jeff Sagal
156fcb1130
- fix Vue 2 peer dependency
...
- fix typo in readme
- add test coverage for focus/blur events
2017-02-03 16:39:07 -08:00
Jeff Sagal
cbeffafb17
- better background color for 'active' dropdown option
...
- simplify conditional logic in select()
- less nested conditionals
- tagging logic moved to createOption method
- add option:created event
- pull up push tags logic to it's own method
- improve isOptionSelected so that functionality is exactly the same as v1
- hitting enter on an already added tag will remove it from the value instead of doing nothing
2017-02-02 16:40:11 -08:00
Jeff Sagal
b096555b68
component
...
- switch to `v-if` (#98 )
- update array string filter to be case-insensitve
testing
- update karma to hide output from skipped tests
- skip scroll down test until http://github.com/vuejs/vue-loader/issues/434 is resolved
build
- add dev.html to be used as entry point for development
2017-01-24 22:23:15 -08:00
es
669984718d
Add option to disable the entire component
2016-12-26 17:12:56 +08:00
Jeff Sagal
f5e3e25dc0
fixes:
...
- change currentSelection to mutableValue
- change currentOptions to mutableOptions
- change showLoading to mutableLoading
- add default onChange function that emits an input event
- allows the use of v-model syntax on the component
- since spies on props throw warnings because they are now immutable, refactor tests so spies aren't required
todo:
- update docs
- 1 failing test from inject-loader issue
2016-12-20 10:53:49 -08:00