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

463 Commits

Author SHA1 Message Date
Jeff de0f46485a Merge branch 'master' of https://github.com/MrStobbart/vue-select into MrStobbart-master
# Conflicts:
#	dist/vue-select.js
#	dist/vue-select.js.map
2019-02-09 15:16:23 -08:00
Erik Nygren 85ae9771f0 Make autocomplete value a prop (#730)
What
---
- Turn the autocomplete value on the `input` configurable by exposing it
as a prop.

Why
---
So it can be customised, which can be necessary to help developers show
or hide autocomplete forms as they wish.
2019-02-09 15:05:00 -08:00
Jeff Sagal fdd0d535e1 stop tracking dist files (#747) 2019-02-09 15:00:49 -08:00
Marco 11b7586bc8 Delete key clears vue-select even if clearable is false (#723)
* Update Select.vue

* Update vue-select.js
2019-02-09 14:55:19 -08:00
yoshihiro nomura 96ff76649b show scroll area only when necessary (#744) 2019-02-09 13:53:58 -08:00
Jeff Sagal 51e7a42f3f bump readme (#745) 2019-02-08 11:53:53 -08:00
Marek Meyer 18416ba6e2 Added fix for #732 2019-02-08 14:02:57 +01:00
Marek Meyer 4d78e7a956 Added dist to #703 2019-02-08 13:48:53 +01:00
Pyro979 623df819ae Proposed fix for #648 (#664)
The components can't focus and the dropdown can't close when clicking 'Sorry, no matching options' 
https://github.com/sagalbot/vue-select/issues/648
2018-12-05 10:19:30 -08:00
bender-x 582c370ed9 import vSelected from 'vue-select' (#707) 2018-12-05 10:11:14 -08:00
Marek Meyer ba4462a514 Refactoring for pull request #703 2018-11-19 11:59:10 +01:00
Marek Meyer cacacfc5a8 Improved fix for unresponsive vue-select after clicking custom no-options to not reintroduce old IE bug (#703) 2018-11-17 11:49:00 +01:00
Marek Meyer 17c06c08b0 Fixed examples to work in internet explorer (replaces template string syntax) (#703) 2018-11-17 11:49:00 +01:00
Marek Meyer 3d6d097125 Removed useless if statement (#703) 2018-11-17 11:49:00 +01:00
Marek Meyer a039a00c4f Fixed naming of new dev.html vue select field (#703) 2018-11-17 11:49:00 +01:00
Marek Meyer 88ed8d4819 Fixed unresponsive vue-select after clicking custom no-options (#703) 2018-11-17 11:48:57 +01:00
Myles Cowper-Coles e0584cda96 Adding the 'clearable' prop to the docs (#649)
What:

* Adding clearable to the gitbook Props.md

Why:

* Its a prop on the select component but it wasn't documented correctly
2018-09-17 09:18:13 -07:00
andonovn 8c622b6331 Changed the filterFunction prop to filterBy (#645)
The `filterFunction` prop does not exist in the source code. There is one called `filterBy` and I think it was just renamed at some point and you forgot to reflect it into the docs. That's just a blind guess tho, but I lost some time figuring out why the documented prop is not working, and that's why I decided to fix it. Hopefully others won't lost time on that, too :)
2018-09-15 17:45:32 -07:00
Jeff a505177900 🚀 v2.5.1 v2.5.1 v2.4.1 2018-09-12 17:28:27 -07:00
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 fb2d24f6df 🚀 v2.5.0 v2.5.0 2018-09-04 09:54:15 -07:00
Jeff Sagal 99a45f44b6 update left padding for actions RTL (#614) 2018-08-12 22:33:35 -07:00
Jeff Sagal 9d9b939a58 Merge pull request #373 from adi518/master
Fix Dropdown closing abruptly when clicking scrollbar under IE
2018-08-09 21:07:17 -07:00
Jeff Sagal 70c3129e74 Merge pull request #611 from sagalbot/bug/hidden-input
Bug/hidden input
2018-08-09 20:53:40 -07:00
Jeff a8644d17d9 add sans-serif font to dev env 2018-08-09 20:51:05 -07:00
Jeff 46adb3204a Fix 0 height search input 2018-08-09 20:50:33 -07:00
Adi Sahar da5c6baa28 Merge branch 'master' into master 2018-08-09 19:23:52 +03: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 adb1c88220 - Update v-select__ prefix to vs__ for brevity
- Adjust right padding on dropdown indicator
- remove dead clearfix code / class
2018-08-07 20:36:19 -07:00
Jeff b0f58d7793 Merge commit 'b92428101f1c6d4aa1fe864a88eb7079c245e009'
# Conflicts:
#	test/unit/specs/Select.spec.js
2018-08-07 19:47:13 -07:00
Jeff Sagal af4e55cc93 Merge pull request #607 from beattyml1/master
Added combobox, listbox, and option roles, Closes #606
2018-08-02 21:20:47 -07:00
Matthew Beatty 7e3f455154 Also indicate whether or not dropdown is expanded 2018-08-01 13:26:47 -04:00
Matthew Beatty d00b567428 Added the combobox, listbox, and option roles to the input, ul, and li items respectively per W3C spec, Closes #606 2018-08-01 13:04:08 -04:00
Steven Harman 9a5d666bd1 Maintain stable height when selected
We need the selected-tag and input to have the same line height, and
same border widths so the height of the content (either a selected-tag
or the input) is stable. Otherwise the v-select will change height by a
few pixels when a value is selected vs empty.
2018-07-20 11:44:04 -04:00
Steven Harman faa548106f Remove unnecessary positioning rule.
This is left over from the days of absolutely-positioning the select
elements.
2018-07-19 16:44:56 -04:00
Steven Harman 34a3a34a99 Use relatively-sized close trigger
So that it respects changes in the font-size of the select itself.
2018-07-19 16:44:46 -04: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
Steven Harman 22449bc3f2 Give actions full height, but center them visually
Meaning the are larger click targets, but still centered in the box.
2018-07-19 12:51:07 -04:00
Steven Harman 746ea25ac9 Consistent padding for selected-tags and input
Flexbox means we can rely on each child of the selected-options
container pushing itself way from neighbors, while also wrapping to
multiple lines when the width gets short! So we're removing the
hard-coded heights and letting things flow as they might, with inner
padding and outer margins doing the work of keeping sufficient space
between things.
2018-07-19 12:51:07 -04:00
Steven Harman 34df80314e Ensure input take available space, but not more.
`flex-grow` will stretch the input to take all remaining space, but We
need to ensure a small amount of space so there's room to type input.
We'll set the input to "hidden" (via width: 0) when the dropdown is
closed, to prevent adding a "blank" line (see:
https://github.com/sagalbot/vue-select/pull/512). In that case, the
flex-grow will still stretch the input to take any available space, on
the same "line."

This really needs https://github.com/sagalbot/vue-select/pull/512 to
work best.
2018-07-19 12:51:07 -04:00
Steven Harman a5555a6c6a Toggle dropdown when mousedown in "empty space"
We might have "empty" space w/in the select box, but outside of the
input. In that case, we still want to toggle the dropdown when clicking
on that "empty" space.
2018-07-19 12:51:07 -04:00
Steven Harman e926b6e007 Use a flexbox-based layout
This change move away from floats and absolute positioning in favor of
flexbox. Flexbox allows us to solve some of the more quirky issues we're
having with elements (e.g, the input) being too big, causing "extra line
breaks", vertical alignment of close buttons, etc... and simplified RTL
support!

I did need to introduce two new child elements to the `dropdown-toggle`
element. These are used to group all of the selected tags and the input
in one group. And the "actions" (clear button, dropdown indicator, and
spinner) in another. Doing so has the added benefit of no longer
allowing selected options from running "under" those other elements.

NOTE: The large blocks of change are due to white space differences from
indenting inside those new wrapper elements. View the diff ignoring
white space to see a more accurate representation of the change here.
2018-07-19 12:51:07 -04:00
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
Jeff Sagal fd32f50379 Update README.md 2018-07-04 09:15:32 -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