Hi I am developing a Mousewheel control and it should disable Model Driven UI Scroll while hovering a field.
I have tried assigning css class to html body when mouse is hovering the field. But it seems like the Model Driven UI does not inherit the css class to the elements inside the body.
I have also tried assigning the css class by using getElementByID but PCF does not recognize the element Id from the Model Driven UI.
Question is it possible to inherit styles from body to a certain element?
I was able resolve the problem by getting the div element that has the scroll by calling the role tag "tabpanel" by querySelector and injecting another class that will modify the scroll function of the model driven ui.
I used classList.toggle("<classname>"); to hide the overflow of model driven ui without changing or affecting its own css. Still need to further investigate for any side effects.
Hi @Lese ,
Do you need control over your own control-area? A PCF gets to control it's own DIV, but is not supposed to make changes to the rest of the form.
Maybe it is possible, but this would be unsupported.
Kind regards,
Diana
WarrenBelz
87
Most Valuable Professional
mmbr1606
71
Super User 2025 Season 1
Michael E. Gernaey
65
Super User 2025 Season 1