Skip to content

[Bug Report] Conditional Judgment Inadequate #17256

@agamem

Description

@agamem

Element UI version

2.12.0

OS/Browsers version

win10

Vue version

2.6.10

Reproduction Link

https://jsfiddle.net/null

Steps to reproduce

null

What is Expected?

null

What is actually happening?

element/packages/table/src/table-layout.js

Line 100 in 45cb58a

const headerTrElm = headerWrapper.querySelector('.el-table__header tr');

当this.showHeader = false, headerWrapper = undefined 时,100行报错
97 if (this.showHeader && !headerWrapper) return;
98
99 // fix issue (#16956)
100 const headerTrElm = headerWrapper.querySelector('.el-table__header tr');
101 const noneHeader = this.headerDisplayNone(headerTrElm);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions