alibaba / alibaba/rax

[Question]Input组件如果设置了readOnly后replaceholder失效

Open
#2,341 4 comments 0 reactions 0 assignees View on GitHub
Bug Fusion Mobile
Dominant language
JavaScript
Stars
8k
Forks
611
PR merge metrics
No merged PRs in 30d

Description

背景
```

```
预期
- 会显示placeholder

实际
- 什么都没显示

需求
- 显示placeholder

---------

还有我希望readOnly的时候 onClick也能触发 现在不行

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported Rax Input example with placeholder="123" and readOnly enabled. Check the component's placeholder display and onClick behavior; it is done when the placeholder is visible and onClick triggers while the input remains read-only.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.