Skip to content

Commit abe1b34

Browse files
fescreenshentao
authored andcommitted
Setting padding to 0 when option is selected to prevent a small text input from appearing below select (shentao#659)
1 parent c2fb318 commit abe1b34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Multiselect.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@
305305
inputStyle () {
306306
if (this.multiple && this.value && this.value.length) {
307307
// Hide input by setting the width to 0 allowing it to receive focus
308-
return this.isOpen ? { 'width': 'auto' } : { 'width': '0', 'position': 'absolute' }
308+
return this.isOpen ? { 'width': 'auto' } : { 'width': '0', 'position': 'absolute', 'padding': '0' }
309309
}
310310
},
311311
contentStyle () {

0 commit comments

Comments
 (0)