fix: check if ref is present before setting overflow position

This commit is contained in:
Antonella Sgarlatta
2021-06-01 19:50:03 -03:00
parent af3bed850e
commit a071d4c9d0
2 changed files with 6 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ import { AppState } from './app_state';
export class ActiveNoteState {
tags: SNTag[] = [];
tagsContainerMaxWidth: number | 'auto' = 'auto';
tagsContainerMaxWidth: number | 'auto' = 0;
tagsContainerExpanded = false;
overflowedTagsCount = 0;