We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fe556b commit 6108294Copy full SHA for 6108294
src/ellipsisText/index.tsx
@@ -83,7 +83,7 @@ const EllipsisText = (props: IEllipsisTextProps) => {
83
}
84
// Compatible width IE8
85
// @ts-ignore
86
- return window.getComputedStyle(dom)[attr] || dom.currentStyle[attr];
+ return window.getComputedStyle(dom)?.[attr] || dom.currentStyle?.[attr];
87
};
88
89
/**
0 commit comments