fix custom textfield
This commit is contained in:
@@ -41,17 +41,9 @@ const props = {
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
const _this = this
|
|
||||||
this.$gmapApiPromiseLazy().then(() => {
|
this.$gmapApiPromiseLazy().then(() => {
|
||||||
// get correct input from fallback or slot
|
// get correct input from fallback or slot
|
||||||
let refInput = _this.$refs.input
|
let refInput = this.$el.nextElementSibling.getElementsByTagName('input')[0]
|
||||||
if (_this.$slots.input) {
|
|
||||||
const refName = _this.$slots.input()[0].props.ref
|
|
||||||
const scopedInput = _this.$slots.input()[0].ref.i.ctx.$refs[refName]
|
|
||||||
if (scopedInput) {
|
|
||||||
refInput = scopedInput.$el.getElementsByTagName('input')[0]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (this.selectFirstOnEnter) {
|
if (this.selectFirstOnEnter) {
|
||||||
downArrowSimulator(refInput)
|
downArrowSimulator(refInput)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user