g_modal autoFocus does not work Issue ProblemThe g_modal autoFocus property does not work as expected, causing the focus to remain on the close button when a modal loads. This issue occurs across all instances, actions with modals, and records. The error 'Autofocus processing was blocked because a document already has a focused element' appears in the browser console. Release All Cause Root CauseThe issue is caused by the modal enforcing focus on the first button (e.g., the close button) upon initial render, overriding the autoFocus property. Resolution Defect PRB1982851 has been closed as Won't Fix with the following reason While this may be existing functionality in UI16, a11y requirements mean on opening a modal the first focusable element should have focus.In an OOTB `now-modal`, this will always be the close button. However, there is an existing property on `now-modal` `disableClose` that removes the close button and therefore focus would land on the first focusable element. If you're relying on the `autofocus` HTML functionality then this may not be the first focusable element. However, as the docs for `disableClose` state:> When true, no close button will show and closing the modal via the keyboard will be disabled. Enabling this property means the modal will no longer pass WCAG requirements. You will need to replace the close functionality elsewhere within the modal.We therefore recommend utilizing the existing `disableClose` to override the default focus order, but with the caveat this transfers responsibility to meet WCAG requirements yourself.