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

40 Commits

Author SHA1 Message Date
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
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
Rajesh Akkineni 23355ea246 Some more changes.
changed from actualValue to currentSelection
2016-10-22 17:55:17 +05:30
Rajesh Akkineni 52e555e02f Fixed more issues for vue2.0 & updated tests 2016-10-20 11:48:56 +05:30
akkinenirajesh b2c201dde9 Changed test to call select instead of set
But no idea why value is readonly property.
2016-10-20 08:05:14 +05:30
Jeff Sagal afdc4da785 manually track down options when deselecting instead of relying on array.$remove, fixes #74 2016-07-11 22:13:43 -07:00
Jeff Sagal 6eead7a702 resetOnOptionsChange true by default, remove redundant test 2016-07-11 16:29:18 -07:00
Jeff Sagal 7c96fb5813 remove stray coverage file 2016-07-11 16:21:35 -07:00
Jeff Sagal 650c2f432a remove ignored coverage 2016-06-22 16:23:26 -07:00
Blaine Ehrhart 361aba64d9 Added resetOnOptionsChange parameter to allow changing the options of the select without resetting the value. This is extra useful for ajax request, especially slow ajax requests 2016-06-20 16:17:00 -07:00
Jeff Sagal 0a15c00b0c fix #54 and add regression test, use 2 space indents 2016-06-16 15:00:08 -07:00
Jeff Sagal 480bfc1c5f ajax mixin 100% coverage, ready for production 2016-06-15 20:34:24 -07:00
Jeff Sagal f8e549306a use keydown for moving pointer, resolves #45 2016-05-31 18:35:01 -07:00
Jeff Sagal 737ab8d1fc separate logic into mixin, complete test coverage with mocks and spies 2016-05-31 13:54:36 -07:00
Jeff Sagal cf87f838fd remove wrapper, start add tests 2016-05-31 10:18:55 -07:00
Jeff Sagal f682f03946 complete dropdown toggle tests 2016-05-29 20:44:42 -07:00
Jeff Sagal b743425aca Merge branch 'master' into webpack
# Conflicts:
#	.gitignore
2016-05-29 14:01:24 -07:00
Jeff Sagal 458445f6e6 update test verbiage 2016-05-29 12:38:38 -07:00
Jeff Sagal 0b4d41f53d minor ignore/package updates 2016-05-29 12:36:20 -07:00
Jeff Sagal b4cbf25f26 adjust srcContext, add coveralls hook 2016-05-28 17:06:41 -07:00
Jeff Sagal 802daaa117 switch to web pack build 2016-05-28 15:50:02 -07:00
Jeff Sagal 03ba6376e3 bump test coverage up to 95%, deprecate getOptionValue, small optimizations 2016-05-28 11:58:18 -07:00
Jeff Sagal 5214b56885 Potentially ready to merge! 2016-05-26 17:10:07 -07:00
Jeff Sagal 655e612aaf tagging 90% complete 2016-05-26 16:13:00 -07:00
nanotronic fd3bf874ad fix typo 2016-04-11 18:47:51 +02:00
nanotronic 7127131bfa adding tests 2016-03-24 18:20:13 +01:00
Jeff Sagal 9f58c32a52 - search input is 100% width when value is empty
- value is no longer required, two-way binding is not enforced
- add deprecated tag to maxHeight (this should just be changed with CSS)
- add onChange prop for Vuex compatibility
- fixed bug in isValueEmpty, added regression test
- added docblocks
2016-03-16 10:56:38 -07:00
Jeff Sagal 2bb59891fc add custom label prop 2016-03-14 14:24:38 -07:00
Jeff Sagal eeffc32d07 added regression test to make sure tags are removed when close is clicked, commit 48dbade broke that functionality 2016-03-14 11:59:01 -07:00
Jeff Sagal 3b60efa9b7 Fixes #15
added regression test to ensure values are deleted properly
2016-03-11 14:38:19 -08:00
Jeff Sagal b894ea7637 also run assertions on labels, fix ‘resets the selected values when the
options property changes’ test
2016-03-11 11:07:18 -08:00
Owen Conti c5f9d2e04c fix preselected tests 2016-03-10 21:27:47 -07:00
Jeff Sagal f3afb01e98 set typeAheadPointer on hover, reset value when options or multiple change 2016-03-08 18:42:30 -08:00
Jeff Sagal d937e86e75 testing npm update 2016-03-08 15:23:08 -08:00
Jeff Sagal d182caa6b1 more tests 2016-03-08 14:10:43 -08:00
Jeff Sagal 50d1991641 enforce value param to be of type array 2016-03-07 16:42:49 -08:00
Jeff Sagal 5d2038caf6 initial commit 2016-03-01 21:07:16 -08:00