Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加input双向绑定数据通知判断,目的防止在生成页面后手动更改input原生属性(去除disabled、readonly)变成可修改 #22819

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

893949088
Copy link

@893949088 893949088 commented Mar 7, 2024

Please make sure these boxes are checked before submitting your PR, thank you!

  • Make sure you follow Element's contributing guide (中文 | English | Español | Français).
  • Make sure you are merging your commits to dev branch.
  • Add some descriptions and refer relative issues for you PR.

@@ -363,7 +363,9 @@
// should remove the following line when we don't support IE
if (event.target.value === this.nativeInputValue) return;

this.$emit('input', event.target.value);
if (!this.disabled && !this.readonly) {
Copy link
Contributor

@wangdaodao wangdaodao Mar 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

计算属性里面有inputDisabled
如果把disabled替换成inputDisabled是不是会好一点?
另外,表单类组件Radio,Checkbox等这些应该也会存在同样的问题。

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.

None yet

2 participants