All Questions
Tagged with document lightning-web-components
3 questions
3
votes
0
answers
1k
views
Check if any input on the page is focused lwc
I want to execute some logic in specific moment(from my LWC) if no Inputs has the focus on my Page.
So I want to know if there is the focus on some input on the page ?
(Logic is executed from an Event ...
2
votes
0
answers
1k
views
LWC: How to access clientHeight from within a component
I currently have document.documentElement.clientHeight in one of my LWC components. However looking at the latest release notes for Winter '20 it seems like this way of accessing the clientHeight will ...
1
vote
1
answer
1k
views
Document.fullScreen API implementation in Lightning Web Components(LWC)
I was trying to achieve full screen on an element in Lightning Web Components but was unable to use Document.fullscreen API.
I tried var elem = this.template.querySelector('svg');
if (elem....