1import { Controller } from '@hotwired/stimulus'; 2import { whenVisible } from 'helpers/visibility_watcher'; 3 4/** 5 * @domain DOM ì í¸ 6 * @concern íì ìí ë³í ê°ì§ í í¬ì»¤ì¤ ì´ë 7 * @description MutationObserverë¡ style/class ìì± ë³í를 ê°ìí´ ììê° ë³´ì´ê² ëë ìê° focusable íê¹ì í¬ì»¤ì¤ë¥¼ ì´ëìí¤ë 컨í¸ë¡¤ë¬ 8 */ 9export default class extends Controller { 10 static targets = ['focusable']; 11 12 connect() { 13 // ì´ë ¸ë¤ ë«íë¤ë¥¼ ë°ë³µíë íì ì´ë¼ once: false(ê³ì ì§ì¼ë³¸ë¤). connect ìì ì 14 // ì´ë¯¸ ë³´ì´ë ìíìë¤ë©´ 그건 ì´ë¦¼ ì íì´ ìëë¯ë¡ fireImmediately: false ë¡ ë¬´ìíë¤. 15 this.stopObservingVisibility = whenVisible(this.element, () => this.focusableTarget.focus(), { 16 once: false, 17 fireImmediately: false, 18 }); 19 } 20 21 disconnect() { 22 this.stopObservingVisibility?.(); 23 } 24}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.