diff --git a/src/components/Dropdown.vue b/src/components/Dropdown.vue index b7743892d5f4ab5061e0327b90cc4824ddd706fc..1bef8f75d95a1ef74aa16cba18c22baf0791cda9 100644 --- a/src/components/Dropdown.vue +++ b/src/components/Dropdown.vue @@ -54,6 +54,10 @@ export default { } return options.length > 0 ? options : null; }, + + placehold() { + return this.input ? "" : this.placeholder; + }, }, data() { @@ -63,7 +67,7 @@ export default { identifier: 0, }; }, - + methods: { toggleDropdown(val) { if (this.isOpen) { @@ -99,10 +103,7 @@ export default { }, created() { - let randomnum = - Math.floor( - Math.random() * 10000 - ); + let randomnum = Math.floor(Math.random() * 10000); this.identifier = randomnum; window.addEventListener("mousedown", this.clickOutsideDropdown); },