Commit 1462bc1e by Lynette Lizardo

focus on buttons in a pop up prompt

parent 1f47ee72
...@@ -63,6 +63,7 @@ export function createModal(okButtonAction, popupTitleText) { ...@@ -63,6 +63,7 @@ export function createModal(okButtonAction, popupTitleText) {
document.getElementById("cancelButton").addEventListener("click", function () { document.getElementById("cancelButton").addEventListener("click", function () {
document.getElementById("backdropContainer").remove(); document.getElementById("backdropContainer").remove();
}); });
document.getElementById("cancelButton").focus();
} }
function handleOK() { function handleOK() {
...@@ -132,5 +133,6 @@ export function createInfoModal(okButtonAction, buttonTxt, popupTitleText) { ...@@ -132,5 +133,6 @@ export function createInfoModal(okButtonAction, buttonTxt, popupTitleText) {
okButtonAction(); okButtonAction();
} }
}); });
document.getElementById("okButton").focus();
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment