Skip to content

Switch has a prop named 'tabIndex', but has no effect #1132

@MurWhite

Description

@MurWhite
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.3.16

Environment

Chrome

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. focus in the input
  2. press the tab on the keyboard

What is expected?

the Switch compoent wouldn't get foucs

What is actually happening?

it did


This is not a big problem. Because I can change tabIndex to tabindex to fix it.
But it shouldn't appear in the props if it's not a supported prop so vue would not give a meaningless warning:

... Prop "tabindex" is passed to component , but the declared prop name is "tabIndex" ...

I haven't test tabIndex in other focusable components whether they work properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions