baidu / baidu/amis

InputText的click和enter事件,目前只有选择器模式的输入框支持,普通的输入框能否也支持?

Open
#7,219 0 comments 0 reactions 0 assignees View on GitHub
bug confirmed
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

#### 实现场景:
InputText的click和enter事件,目前只有选择器模式的输入框支持,普通的输入框能否也支持?

#### 存在的问题:
![image](https://github.com/baidu/amis/assets/37805363/eac9f58b-ae16-4c1d-b6b6-9af60ad0ddf0)

#### 当前方案:
普通的输入框也支持click和enter事件

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the InputText component and tracing how click and Enter events are handled for selector-mode inputs. Compare that path with ordinary inputs, then verify that both event types work for ordinary inputs without changing selector behavior. Add or run the relevant InputText tests if the component has coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
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.