File tree Expand file tree Collapse file tree 4 files changed +7
-8
lines changed
Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -43,3 +43,9 @@ export class SelectComponentObserver {
4343 } ) ;
4444 }
4545}
46+
47+ // Initialize the SelectComponentObserver when the DOM is fully loaded
48+ document . addEventListener ( 'DOMContentLoaded' , ( ) => {
49+ const selectComponentObserverInstance = new SelectComponentObserver ( ) ;
50+ selectComponentObserverInstance . observe ( ) ;
51+ } ) ;
Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ import { initializeOpenStreetMaps } from './openStreetMap';
4545import { initializeResizeMediaQuery } from './resizeMediaQuery' ;
4646import { SimulateClick } from './SimulateClick' ;
4747import { initializeSegments } from './segment' ;
48- import { SelectComponentObserver } from './select/SelectComponentObserver' ;
4948import { initializeSelectFilter } from './selectFilter' ;
5049import { initializeSelectSort } from './selectSort' ;
5150import { initializeSizeObserver } from './sizeObserver' ;
@@ -76,14 +75,12 @@ document.addEventListener('DOMContentLoaded', () => {
7675 const AriaPressedTogglerInstance = new AriaPressedToggler ( ) ;
7776 const QuickLinksHeaderInstance = new QuickLinksHeader ( ) ;
7877 const NavbarInstance = new Navbar ( ) ;
79- const selectComponentObserverInstance = new SelectComponentObserver ( ) ;
8078 const NotificationInstance = new Notification ( ) ;
8179 const DynamicSidebarInstance = new DynamicSidebar ( ) ;
8280 const filter = new Filter ( ) ;
8381 const MenuInstance = new Menu ( ) ;
8482 const fileInput = new FileInput ( ) ;
8583
86- selectComponentObserverInstance . observe ( ) ;
8784 new ClassToggleInitializer ( ) . init ( ) ;
8885 NotificationInstance . setup ( ) ;
8986 SortInstance . applySort ( ) ;
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export * from '../components/nav/index.js';
1111export * from '../components/navbar/navbar.js' ;
1212export * from '../components/pagination/pagination' ;
1313export * from '../components/segment/segment.js' ;
14+ export * from '../components/select/index.js' ;
1415export * from '../components/sidebar/sidebar.js' ;
1516export * from '../components/slider/slider' ;
1617export * from '../components/table/table.js' ;
Original file line number Diff line number Diff line change @@ -70,11 +70,6 @@ import './helpers/moveElements.ts';
7070import './helpers/swipe.js' ;
7171import './helpers/video.js' ;
7272
73- // Select components
74- import './select/IsCheckedToggler.ts' ;
75- import './select/Select.ts' ;
76- import './select/SelectComponentObserver.ts' ;
77-
7873// All form file input related components
7974import './form/fileinput/controller.ts' ;
8075import './form/fileinput/dropzone.ts' ;
You can’t perform that action at this time.
0 commit comments