No longer used
Seemed to have been used for an old combobox design
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
import { Controller } from "@hotwired/stimulus"
|
||||
|
||||
export default class extends Controller {
|
||||
static targets = [ "element" ]
|
||||
|
||||
connect() {
|
||||
this.observer = new IntersectionObserver(([entry]) => {
|
||||
if (entry.isIntersecting) this.elementTarget.focus()
|
||||
})
|
||||
this.observer.observe(this.elementTarget)
|
||||
}
|
||||
|
||||
disconnect() {
|
||||
this.observer.disconnect()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user