diff --git a/dev/Dev.vue b/dev/Dev.vue
index ab8e964a5..787c702f6 100644
--- a/dev/Dev.vue
+++ b/dev/Dev.vue
@@ -1,6 +1,7 @@
-
+
+
@@ -11,11 +12,21 @@ import countries from '../docs/.vuepress/data/countryCodes.js'
export default {
components: { vSelect },
data: () => ({
+ hidden: false,
selected: null,
config: {
options: countries,
+ appendToBody: true,
},
}),
+ methods: {
+ hide() {
+ this.hidden = true
+ setTimeout(() => {
+ this.hidden = false
+ }, 2000)
+ },
+ },
}
diff --git a/src/components/Select.vue b/src/components/Select.vue
index 0f81b6b68..87375b462 100644
--- a/src/components/Select.vue
+++ b/src/components/Select.vue
@@ -82,55 +82,57 @@
-
-
-
-
+
+
+
+ {{ getOptionLabel(option) }}
+
+
+
+
+ Sorry, no matching options.
+
+
+
+
+
+
+
diff --git a/src/directives/appendToBody.js b/src/directives/appendToBody.js
index 514e1446b..60e4de5cd 100644
--- a/src/directives/appendToBody.js
+++ b/src/directives/appendToBody.js
@@ -14,8 +14,6 @@ export default {
left: scrollX + left + 'px',
top: scrollY + top + height + 'px',
})
-
- document.body.appendChild(el)
}
},
@@ -24,9 +22,6 @@ export default {
if (el.unbindPosition && typeof el.unbindPosition === 'function') {
el.unbindPosition()
}
- if (el.parentNode) {
- el.parentNode.removeChild(el)
- }
}
},
}