Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The highlight-current-row attribute of [Bug Report] table component has no effect. No settings will be highlighted after clicking. #11719

Closed
pkwdzc opened this issue Jun 22, 2018 · 2 comments

Comments

@pkwdzc
Copy link

pkwdzc commented Jun 22, 2018

Element UI version

2.4.1

OS/Browsers version

win7 / chrome

Vue version

2.5.16

Reproduction Link

https://jsfiddle.net/pkwdzc/8wLq2y4f/

Steps to reproduce

1、table组件highlight-current-row属性默认是false,意味着不高亮选中行
2、不设置highlight-current-row属性,点击table里任意一行,当前行高亮
3、事实上在官网的所有table的demo里都有这个问题,无论是否设置highlight-current-row属性,点击任意一行均会高亮当前行

What is Expected?

table组件不设置highlight-current-row属性时,点击不会高亮当前选中行。只有设置了highlight-current-row为true,才会在点击时高亮row

What is actually happening?

无论是否设置highlight-current-row属性,点击任意一行均会高亮当前行

@element-bot element-bot changed the title [Bug Report] table组件highlight-current-row属性没作用,无论设不设置都会点击后高亮 The highlight-current-row attribute of [Bug Report] table component has no effect. No settings will be highlighted after clicking. Jun 22, 2018
@element-bot
Copy link
Member

Translation of this issue:

Element UI version
2.4.1

OS/Browsers version
Win7 / Chrome

Vue version
2.5.16

Reproduction Link
https://jsfiddle.net/pkwdzc/8wLq2y4f/

Steps to reproduce
1, the highlight-current-row attribute of the table component is false by default, which means that the selected row is not highlighted.

2, do not set the highlight-current-row attribute, click any line in table, and highlight the current line.
3, in fact, there is this problem in all the table demo in the official network, and whether or not the highlight-current-row property is set, clicking on any line will highlight the current line

What is Expected?
When the table component does not set the highlight-current-row attribute, clicking will not highlight the current selected row. Only when highlight-current-row is set is true, will highlight row when clicking.

What is actually happening?
Whether or not the highlight-current-row attribute is set, clicking any row will highlight the current row.

@jikkai
Copy link
Contributor

jikkai commented Jun 22, 2018

Duplicate of #11560

@jikkai jikkai marked this as a duplicate of #11560 Jun 22, 2018
@jikkai jikkai closed this as completed Jun 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants