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

820 Commits

Author SHA1 Message Date
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
Jeff Sagal dd490488d0 Merge pull request #556 from NowServingUs/master
Inherit font-family instead of using 'sans-serif'
2018-06-08 09:55:50 -07:00
Todd Baur 3e7866f100 Merge pull request #1 from NowServingUs/nowserving-patch-1
allow component to inherit font family choices
2018-06-07 21:03:33 +09: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
Kevin Ball d2efc965f9 Add select on tab option and example 2018-06-05 15:47:52 -07:00
Jeff 867a74cddb Merge pull request #457 from golubkovden/patch-1
Update README.md
2018-05-09 14:52:59 -07:00
Jeff 058e1fd088 Merge pull request #532 from luisDanielRoviraContreras/patch-1
Add license in README.md
2018-05-09 14:52:32 -07:00
ldrovira 68a14d4d6c Add license in README.md 2018-05-06 12:46:17 -04:00
adi518 874f948790 Merge branch 'master' into master 2018-04-21 03:00:38 +03: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 173f0bfea0 Merge pull request #470 from dbezborodovrp/feature/clear-button-flag
Clear button flag.
2018-02-28 10:25:44 -08: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
adi 350998b2da Fix inability to type after clicking the "No-options" placeholder; This is an additional fix to IE scrollbar bug; 2018-02-11 18:00:01 +02:00
Denis Golubkov 1ba47798ee Update README.md
Added link to github page
2018-02-09 14:53:58 +03:00
Jeff 546b27d7d2 Merge pull request #444 from rubjo/patch-1
Match tags :)
2018-02-01 09:22:38 -08:00
rubjo 5d64b52c9f Match tags :) 2018-02-01 13:12:48 +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 e0680bce86 Merge pull request #438 from enid-colic/browser_autocomplete_fix
Disable browser autocomplete FIX
2018-01-23 14:12:50 -08:00
enid-colic cd53e5d1c4 Disable browser autocomplete FIX 2018-01-23 21:41:47 +01:00
Jeff bdb2963e93 Merge pull request #437 from sagalbot/maintenance/bump-travis-config
improve build speed by only building/testing on the latest node version
2018-01-23 09:37:55 -08:00
Jeff e35e2ac100 Merge pull request #436 from sagalbot/feature/dont-deselect-when-clicking-selected-options
dont deselect when clicking selected options
2018-01-23 09:01:45 -08:00
Jeff ee39ceb448 improve build speed by only building/testing on the latest node version 2018-01-23 08:59:08 -08:00
Jeff b3a551c836 never deselect options from the dropdown 2018-01-23 08:48:23 -08:00
Jeff 22d2004e2f uncomment dev env from previous PR 2018-01-23 08:47:56 -08:00
Jeff 843f39d5bc Merge pull request #435 from sagalbot/bug/home-page-text-jump
Bug/home page text jump
2018-01-22 19:19:13 -08:00
Jeff a861b16553 just redirect on option click 2018-01-22 19:17:38 -08:00
Jeff df0cc83e05 - add vue-select as a dev dependency so that the homepage is always using the latest release
- fix text-align:center issue on homepage
2018-01-22 19:09:43 -08:00
Jeff c98e5fb2e5 Merge pull request #433 from sagalbot/maintenance/update-dev-env
Maintenance/update dev env
2018-01-22 19:03:26 -08:00
Jeff ec930c5b53 maybe try committing the right file 🤦‍♂️ 2018-01-22 19:02:38 -08:00
Jeff eec0302a60 Revert "devtools are always on"
This reverts commit 4ead15f7bf.
2018-01-22 19:02:09 -08:00
Jeff 4ead15f7bf devtools are always on 2018-01-22 19:01:06 -08:00
Jeff 011ad4fa87 move development files into their own folders, organize data sources 2018-01-22 18:21:25 -08:00
Jeff 80585c1a3b Merge pull request #432 from sagalbot/bug/typo
fix homepage typo, closes #431
2018-01-22 18:07:12 -08:00
Jeff 9f0021572b fix homepage typo, closes #431 2018-01-22 18:06:33 -08:00
Jeff a88d827333 Merge pull request #428 from sagalbot/maintenance/doc-fixes
bump readme, fix null anchor
2018-01-18 14:23:39 -08:00
Jeff 3cb698e4c7 bump readme, fix null anchor 2018-01-18 14:23:15 -08:00
Jeff cbec6f0b29 Merge pull request #427 from sagalbot/maintenance/update-tagging-example
update taggable example
2018-01-18 13:43:15 -08:00
Jeff 2cde8951e4 update taggable example 2018-01-18 13:42:49 -08:00
Jeff 1cb5e9eafa Merge pull request #426 from sagalbot/maintenance/update-localization-docs
improve Localization docs
2018-01-18 13:28:55 -08:00
Jeff 6b61d6aacb improve Localization docs 2018-01-18 13:27:53 -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
Simone Todaro 76a90246d8 Add tests 2018-01-17 22:09:05 +00:00