Fixed #1810 - Split container item funcitonality

This commit is contained in:
Maxx Crawford
2020-07-14 16:49:49 -05:00
parent a10d222ce7
commit 7f31a92ede
4 changed files with 65 additions and 15 deletions
+9
View File
@@ -75,6 +75,15 @@ const Utils = {
});
},
addEnterOnlyHandler(element, handler) {
element.addEventListener("keydown", (e) => {
if (e.keyCode === 13) {
e.preventDefault();
handler(e);
}
});
},
userContextId(cookieStoreId = "") {
const userContextId = cookieStoreId.replace("firefox-container-", "");
return (userContextId !== cookieStoreId) ? Number(userContextId) : false;