No longer used

Seemed to have been used for an old combobox design
This commit is contained in:
David Heinemeier Hansson
2025-04-18 16:52:55 +02:00
parent 9aef965db8
commit c65639a3ce
@@ -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()
}
}