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

lbs-props-text-enum-editor组件 minus事件异常删除修复 #388

Open
leezijin opened this issue Nov 24, 2021 · 1 comment
Open

lbs-props-text-enum-editor组件 minus事件异常删除修复 #388

leezijin opened this issue Nov 24, 2021 · 1 comment

Comments

@leezijin
Copy link

直接上代码 : 原代码onClick={(item,index) => this.minus(item, index)}

@leezijin
Copy link
Author

需要修改成 onClick={() => this.minus(item, index)}
另外建议 保留一个输入框
style={this.innerItems.length == 1 ? '' : 'display:none'}
该代码意图为 有多个输入框则第一个输入框无增加或删除
等输入框删除剩余最后一个 则保留一个输入框

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

No branches or pull requests

1 participant