react-component / react-component/select

[Bug] tag 过长会导致多余的换行

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

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
938
Forks
482
Avg merge
15h 8m
Merged PRs (30d)
2

Description

目前 multiple 模式下,当某个 tag 过长时,内部的 input node 会被挤到第二行。其实如果把 showSearch 设置为 false 的话,这个 input node 可以去掉,这样会更美观一些。


截屏2021-09-02 下午4 37 05

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 from the Select component's multiple mode rendering and the handling of showSearch. Reproduce the case with an unusually long tag and showSearch set to false, then verify that the internal input no longer creates an unnecessary second line.

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
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.