Skip to content

Commit

Permalink
fix(VOverflowBtn): fix spacing (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD committed May 6, 2018
1 parent 349423e commit 0565d37
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
22 changes: 6 additions & 16 deletions src/components/VOverflowBtn/VOverflowBtn.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,34 +35,24 @@ export default {
},
isSingle () {
return true
},
internalSearch: {
get () {
return this.editable
? VAutocomplete.computed.internalSearch.get.call(this)
: ''
},
set (val) {
VAutocomplete.computed.internalSearch.set.call(this, val)
}
}
},

methods: {
genSelections () {
return this.segmented
? VSelect.methods.genSelections.call(this) // Override v-autocomplete's override
: VAutocomplete.methods.genSelections.call(this)
return this.editable
? VAutocomplete.methods.genSelections.call(this)
: VSelect.methods.genSelections.call(this) // Override v-autocomplete's override
},
genCommaSelection (item) {
genCommaSelection (item, index, last) {
return this.segmented
? this.genSegmentedBtn(item)
: VSelect.methods.genCommaSelection.call(this, item)
: VSelect.methods.genCommaSelection.call(this, item, index, last)
},
genInput () {
const input = VTextField.methods.genInput.call(this)

input.data.domProps.value = this.internalSearch
input.data.domProps.value = this.editable ? this.internalSearch : ''
input.data.attrs.readonly = !this.isAnyValueAllowed

return input
Expand Down
3 changes: 3 additions & 0 deletions src/stylus/components/_overflow-buttons.styl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ theme(v-overflow-btn, "v-overflow-btn")
input
margin-left: 16px

.v-select__selection--comma:first-child
margin-left: 16px

.v-input__slot
transition: .3s $transition.swing

Expand Down

0 comments on commit 0565d37

Please sign in to comment.