fix custom textfield

This commit is contained in:
2023-12-15 11:50:31 -05:00
parent a1b6e8d011
commit ee38653f72

View File

@@ -41,17 +41,9 @@ const props = {
export default {
mounted() {
const _this = this
this.$gmapApiPromiseLazy().then(() => {
// get correct input from fallback or slot
let refInput = _this.$refs.input
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]
}
}
let refInput = this.$el.nextElementSibling.getElementsByTagName('input')[0]
if (this.selectFirstOnEnter) {
downArrowSimulator(refInput)
}