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

Bug: useVbenForm: 操作按钮隐藏导致回车提交失效 #5159

Closed
5 tasks done
122531 opened this issue Dec 17, 2024 · 1 comment · Fixed by #5163
Closed
5 tasks done

Bug: useVbenForm: 操作按钮隐藏导致回车提交失效 #5159

122531 opened this issue Dec 17, 2024 · 1 comment · Fixed by #5163

Comments

@122531
Copy link

122531 commented Dec 17, 2024

Version

Vben Admin V5

Describe the bug?

props.showDefaultActions设置为false后,submitOnEnter设置为true将不起作用,change事件正常

Reproduction

const [Form, formApi] = useTableForm({
handleSubmit: () => {
console.log('onSubmit');
},
showDefaultActions: false,
submitOnEnter: true,
});

System Info

window
NODE: '20.14.0'

Relevant log output

No response

Validations

@axinss
Copy link

axinss commented Dec 17, 2024

这也不算bug吧。你是想在不使用操作按钮的情况下。也能按回车触发提交?

@github-actions github-actions bot locked and limited conversation to collaborators Jan 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants