pdf-element icon indicating copy to clipboard operation
pdf-element copied to clipboard

pdf-element does not respond to `hidden` attribute

Open hyyan opened this issue 8 years ago • 1 comments

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

hyyan avatar Jan 17 '17 08:01 hyyan

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!

streetturtle avatar Mar 04 '17 22:03 streetturtle