react-component / react-component/tabs

key值不符合document.querySelector语法时错误

Open
#654 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
572
Forks
241
Avg merge
4d 18h
Merged PRs (30d)
4

Description

Reproduction link

Edit on CodeSandbox

Steps to reproduce

当key值不符合document.querySelector语法时错误
image

Environment Info
rc-tabs 12.5.7
React 18.0.2
System window
Browser 110

Error code line

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at src/TabNavList/index.tsx around line 314 and reproduce the error with the linked CodeSandbox, using a key that is invalid for document.querySelector syntax. Trace how that key reaches the failing lookup. Done means the same reproduction no longer throws an error while tab behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.