Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

cant render on hidden element modal. #457

Open
arcanisgk opened this issue Jul 11, 2024 · 0 comments
Open

cant render on hidden element modal. #457

arcanisgk opened this issue Jul 11, 2024 · 0 comments

Comments

@arcanisgk
Copy link

arcanisgk commented Jul 11, 2024

i have a hiden modal with content like this:

<br><img id="bc-A_C01_N03"/><br>

i try to implement JsBarcode like this:

let string = "A_C01_N03"
window.JsBarcode("#bc-" + string, string, {width: 6, height: 50});

and getn error:

Uncaught NoElementException
at new NoElementException (http://avi3.vm/sources/js/adds/plugins/barcode/JsBarcode.all.js?20240711153903:3595:125)
at API.render (http://avi3.vm/sources/js/adds/plugins/barcode/JsBarcode.all.js?20240711153903:289:9)
at JsBarcode (http://avi3.vm/sources/js/adds/plugins/barcode/JsBarcode.all.js?20240711153903:167:55)
at GetBarCodeSample (:233:12)
at NivAdd (:187:12)
at HTMLButtonElement. (:51:20)
at HTMLDocument.dispatch (http://avi3.vm/sources/js/adds/jquery.min.js?20240711153903:5429:27)
at elemData.handle (http://avi3.vm/sources/js/adds/jquery.min.js?20240711153903:5233:28)

I'm thinking that it can't find it because the modal is hidden... or because the modal was added programmatically and it can't find it in the DOM.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant