Skip to content

Commit

Permalink
chore(breadcrumb): add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyan-u committed Aug 1, 2024
1 parent 2a39d5d commit bd44e01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/breadcrumb/breadcrumb-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default class BreadcrumbItem extends Component<BreadcrumbItemProps> {
}

adjustCutOff() {
// TODO light dom 中,在除了 installed 的其他生命周期中,ref.current.clientWidth 等属性为 0,无法在更新时判断是否溢出
if (this.breadcrumbText.current) {
this.isCutOff = isNodeOverflow(this.breadcrumbText.current);
}
Expand Down

0 comments on commit bd44e01

Please # to comment.