-
Notifications
You must be signed in to change notification settings - Fork 538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow the user to define the domTarget, which allows support for shadowDom and more #241
base: master
Are you sure you want to change the base?
Conversation
How's going team? I'd like to see this merged :) Thank you for a awesome library. |
Just a quick nit - I've moved to your branch and using shadowRoot as domTarget directly fails in typescript (although it's valid js), because the type of I was already embedding in a div so I could fix by grabbing the container:
but the type should probably Thanks for this patch, I was about to fix this myself so it saved me a step! I'd love to see this land, even as-is. |
@jesseditson Feel free to make a PR to my branch, which can be merged into the branch for the PR to the main branch. |
@jesseditson Did you find some time, to implement it? You're welcome to add the PR here: https://github.com/exetico/qr-scanner
I'm using TS in one project, so I'm not that into what's "does and donts", so I think you're more capable on adding the missing TS logics. I'd like to have it as part of my PR, as I expect the change for the nimiq team merging it, are a bit higher. I've asked on Discord and more, but no-one replies... |
@sisou What do you think ? :-) |
Hi @jesseditson. Do you still use the qr-scanner lib? I've added the required changes to the branch. Else, I'd like a MCVE so I can double-check myself. I don't have a TypeScript project with shadowDom's right now, so I'd like a input on that part. I'd hope to see this merged by the nimiq team. But I'm not sure who I should try and contact at this point. Maybe @onmax or @sisou ? |
In the current state, users can't use shadowRoms with this util. Take a look at: #129, #210 and #168
I've added support for
domTarget
, which can be defined as an option. Documentation has been updated, too.