Is there a way to hook into input’s clear event from an autocomplete function?
i dont fully understand what you need,
i use vuejs and make my own eventBus, but you can do it with f7 bus
,
mounted () {
this.$eventBus.$on(`clear-input-${this.id}`, this.clearInput)
},
beforeDestroy () {
this.$eventBus.$off(`clear-input-${this.id}`, this.clearInput)
},
just remember to unbind the event when not need it
f7 event bus doc
https://framework7.io/docs/events.html#events-bus