Skip to content

Commit 97f60ed

Browse files
author
Damian Dulisz
authored
Merge pull request shentao#400 from riophae/2.0
Fixes for a minor bug & typos
2 parents fbb076b + b134709 commit 97f60ed

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/partials/examples/_examples.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
#### New in v2.0.0 stable:
6060
- `id="ajax"` – every event is emitted with this as the second param. Useful for identification which component instance triggered the method (in loops for example). NEW: Can also be used for pointing with `<label :for="id">`.
61-
- `open-direction="bottom"` – forces the multiselect to always open below. Use `top` or `above` to always open below. By default the multiselect will open whereever there is more space once there is not enough space below to open at `maxHeight`.
61+
- `open-direction="bottom"` – forces the multiselect to always open below. Use `top` or `above` to always open above. By default the multiselect will open whereever there is more space once there is not enough space below to open at `maxHeight`.
6262
+example('AjaxSearch')
6363
+subsection('Tagging')
6464
:markdown-it

src/multiselectMixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import deepClone from './utils'
22

33
function isEmpty (opt) {
44
if (opt === 0) return false
5-
if (opt === []) return true
5+
if (Array.isArray(opt) && opt.length === 0) return true
66
return !opt
77
}
88

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Returns a depply cloned object without reference.
2+
* Returns a deeply cloned object without reference.
33
* Copied from Vuex.
44
* @type {Object}
55
*/

0 commit comments

Comments
 (0)