react-component / react-component/picker

【BUG】datepicker timepicker使用ref.focus无法弹窗选择器

Open
#41 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
304
Forks
345
Avg merge
2d 7h
Merged PRs (30d)
7

Description

关于日期类选择器使用ref.focus无法弹窗选择器。
我查看了源码最新组件是通过mouseDown事件弹窗,focus是只能给input提供焦点事件,但是无法弹窗。不知ref中focus的用意

version
  • rc-picker 1.4.1

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

Reproduce the date/time picker behavior described for rc-picker 1.4.1, comparing ref.focus with the mouseDown path mentioned in the issue. Read the picker source around those entry points and determine the intended focus contract; done requires a documented, agreed behavior for whether ref.focus should open the selector.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.