File tree Expand file tree Collapse file tree 3 files changed +204
-60
lines changed Expand file tree Collapse file tree 3 files changed +204
-60
lines changed Original file line number Diff line number Diff line change @@ -148,13 +148,13 @@ module.exports = defineConfig([{
148148 "no-alert" : "off" ,
149149 "no-array-constructor" : "error" ,
150150 "no-async-promise-executor" : "error" ,
151- "no-await-in-loop" : "error " ,
151+ "no-await-in-loop" : "off " ,
152152 "no-bitwise" : "off" ,
153153 "no-buffer-constructor" : "error" ,
154154 "no-caller" : "error" ,
155155 "no-catch-shadow" : "error" ,
156156 "no-confusing-arrow" : "off" ,
157- "no-continue" : "error " ,
157+ "no-continue" : "off " ,
158158 "no-div-regex" : "error" ,
159159 "no-duplicate-imports" : "error" ,
160160 "no-else-return" : "error" ,
@@ -363,7 +363,7 @@ module.exports = defineConfig([{
363363 } ,
364364
365365 extends : compat . extends ( "plugin:@html-eslint/recommended" ) ,
366-
366+
367367 rules : {
368368 "indent" : "off" ,
369369 "no-mixed-spaces-and-tabs" : "off" ,
Original file line number Diff line number Diff line change 77 < body >
88 < table > </ table >
99 < script type ="module ">
10- import { DataTable } from "../dist/module.js"
10+ import { DataTable } from "../../ dist/module.js"
1111
1212 const data = {
1313 "headings" : [
7272 rowNavigation : true
7373 } )
7474
75- window . dt . columns . filter ( 2 )
76- window . dt . rows . setCursor ( 1 )
75+ // Wait for DataTable to fully initialize before calling methods
76+ setTimeout ( ( ) => {
77+ try {
78+ window . dt . columns . filter ( 2 )
79+ window . dt . rows . setCursor ( 1 )
80+ } catch ( error ) {
81+ console . error ( "Error calling DataTable methods:" , error )
82+ }
83+ } , 100 )
7784 </ script >
7885 </ body >
7986</ html >
You can’t perform that action at this time.
0 commit comments