Skip to content
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

pdf-element does not respond to hidden attribute #12

Open
hyyan opened this issue Jan 17, 2017 · 1 comment
Open

pdf-element does not respond to hidden attribute #12

hyyan opened this issue Jan 17, 2017 · 1 comment

Comments

@hyyan
Copy link

hyyan commented Jan 17, 2017

Hello

Thanks for the great work , I have noticed that the element does not respect the hidden attribute , any idea ?

does not work

<pdf-element hidden src="./example.pdf"></pdf-element>

thanks in advance

@streetturtle
Copy link
Owner

Hi!

Thanks! What do you mean by does not respect? I've just checked locally and it works. Also on the demo page you can add hidden attribute to the element and it will disappear: run this from Developer's Console:

document.getElementsByTagName('pdf-element')[0].setAttribute('hidden', true)

Could you please explain the problem in more details.

Cheers!

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

No branches or pull requests

2 participants