remove prop instead of assigning unset

pull/21833/head
Bruno Windels 2020-07-03 16:52:52 +02:00
parent 8cd20eedeb
commit 52fdf92180
1 changed files with 2 additions and 2 deletions
src/components/structures

View File

@ -119,7 +119,7 @@ export default class LeftPanel2 extends React.Component<IProps, IState> {
if (slRect.top + headerHeight > bottom && !gotBottom) {
header.classList.add("mx_RoomSublist2_headerContainer_sticky");
header.classList.add("mx_RoomSublist2_headerContainer_stickyBottom");
header.style.top = `unset`;
header.style.removeProperty("top");
gotBottom = true;
} else if ((slRect.top - (headerHeight / 3)) < top) {
header.classList.add("mx_RoomSublist2_headerContainer_sticky");
@ -135,7 +135,7 @@ export default class LeftPanel2 extends React.Component<IProps, IState> {
header.classList.remove("mx_RoomSublist2_headerContainer_sticky");
header.classList.remove("mx_RoomSublist2_headerContainer_stickyTop");
header.classList.remove("mx_RoomSublist2_headerContainer_stickyBottom");
header.style.top = `unset`;
header.style.removeProperty("top");
}
}
}