avoid-dom-form-event
Don't register or unregister handles to the Document Object Model (DOM) events of model-driven apps. This isn't a supported approach in Dynamics 365 or Power Apps. Use the supported Client-side event handlers instead.
Options
- By default, violations are only reported when certain
Xrm
orMscrm
calls are made in the same file, so that violations outside of Dataverse are not reported. TherequireXrm
option, which istrue
by default, can be set tofalse
to report all violations regardless ofXrm
orMscrm
usage- Example:
"@microsoft/power-apps/avoid-dom-form-event": ["error", { requireXrm: false }]
- Example: