Skip to content

Commit

Permalink
Patch Cannot read properties of undefined for Column (#5369)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 committed Aug 4, 2023
1 parent 685357a commit 47c4a05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions panel/models/column.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ export class ColumnView extends BkColumnView {
toggle_scroll_button(): void {
const threshold = this.model.scroll_button_threshold
const exceeds_threshold = this.distance_from_latest >= threshold
requestAnimationFrame(() => {
if (this.scroll_down_button_el) {
this.scroll_down_button_el.classList.toggle(
"visible", threshold !== 0 && exceeds_threshold
)
});
};
}

render(): void {
Expand Down

0 comments on commit 47c4a05

Please sign in to comment.