Skip to content

Commit

Permalink
Adds focus: false to newly created modal dialogs
Browse files Browse the repository at this point in the history
Without forcing focus false, the modal will not allow other modals to have focus for their inputs. This breaks tools like CKEditor.

From local testing, there are no negative side effects with not forcing focus on open.
  • Loading branch information
tosbourn authored Jul 8, 2022
1 parent 0ebbd85 commit 165c6ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rails_admin/remote-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ import * as bootstrap from "bootstrap";
new bootstrap.Modal(widget.dialog[0], {
keyboard: true,
backdrop: true,
focus: false,
show: true,
}).show();
}
Expand Down

0 comments on commit 165c6ea

Please sign in to comment.