Skip to content

fix(dom): treat readonly inputs as interactive elements#347

Open
Liuhanlin23 wants to merge 1 commit intoalibaba:mainfrom
Liuhanlin23:main
Open

fix(dom): treat readonly inputs as interactive elements#347
Liuhanlin23 wants to merge 1 commit intoalibaba:mainfrom
Liuhanlin23:main

Conversation

@Liuhanlin23
Copy link

What

1.将 readonly 输入框识别为可交互元素,Element Plus 的日期区间选择器使用 readonly 属性阻止手动输入,但输入框仍可点击打开日历面板。当前代码将 readonly 等同于 disabled,导致 这类输入框对agent不可见。

2.对于issue的清空按钮问题没有修复,因为 agent 可以通过 input_text(index, "") 实现清空。

Type

  • Bug fix
  • Feature / Improvement
  • Refactor
  • Documentation
  • Website
  • Demo / Testing
  • Breaking change

Testing

  • Tested in modern browsers
  • No console errors
  • Types/doc added

Closes #346

Requirements / 要求

  • I have read and follow the Code of Conduct and Contributing Guide . / 我已阅读并遵守行为准则。
  • This PR is NOT generated by a bot or AI agent acting autonomously. I have authored or meaningfully reviewed every change. / 此 PR 不是由 bot 或 AI 自主生成的,我已亲自编写或充分审查了每一处变更。

@CLAassistant
Copy link

CLAassistant commented Mar 24, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Element Plus 无法识别文本框的清空功能,以及开始结束日期框的选择

2 participants