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

Table 的下拉菜单按钮会将 Form 表单提交 #150

Open
xushre opened this issue Jan 16, 2023 · 1 comment
Open

Table 的下拉菜单按钮会将 Form 表单提交 #150

xushre opened this issue Jan 16, 2023 · 1 comment

Comments

@xushre
Copy link

xushre commented Jan 16, 2023

<button disabled={!this.state.rows || !this.state.columns} className="button primary" onClick={this.confirmInsert}>{this.props.language.insertTable}</button>

建议在 button 上设置 type 属性

@ZhouYing-JOEY
Copy link

可以在BraftEditor组件的onChange事件首行加入document.querySelector('.bf-table-dropdown-control button')?.setAttribute?.('type', 'button');来解决此问题。

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

2 participants