extraneous css removal

This commit is contained in:
Kendall Werts
2020-02-25 16:08:11 -06:00
parent 694b0f7b47
commit 6bb3acbe5a
2 changed files with 16 additions and 365 deletions
+13 -13
View File
@@ -658,19 +658,19 @@ Logic.registerPanel(P_CONTAINERS_LIST, {
/* Not sure why extensions require a focus for the doorhanger,
however it allows us to have a tabindex before the first selected item
*/
const focusHandler = () => {
const identityList = list.querySelector("tr .clickable");
if (identityList) {
// otherwise this throws an error when there are no containers present.
identityList.focus();
document.removeEventListener("focus", focusHandler);
}
};
document.addEventListener("focus", focusHandler);
/* If the user mousedown's first then remove the focus handler */
document.addEventListener("mousedown", () => {
document.removeEventListener("focus", focusHandler);
});
// const focusHandler = () => {
// const identityList = list.querySelector("tr .clickable");
// if (identityList) {
// // otherwise this throws an error when there are no containers present.
// identityList.focus();
// document.removeEventListener("focus", focusHandler);
// }
// };
// document.addEventListener("focus", focusHandler);
// /* If the user mousedown's first then remove the focus handler */
// document.addEventListener("mousedown", () => {
// document.removeEventListener("focus", focusHandler);
// });
return Promise.resolve();
},
});