a11y-todos

Expand History Expand History
Collapse History Collapse History

Fetch the <dialog> contents when opened

Instead of calling render(template: "events/new") within the <dialog> element, fetch that fragment dynamically through an Asynchronous JavaScript and XML (AJAX) request.

Since the <form> element and its contents will be rendered on the server, move the bulk#select Stimulus action logic to the EventsController#new action and template. For example, instead of using JavaScript to set an <input type="checkbox"> element’s checked and autofocus properties, render it with the checked and autofocus attributes.