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

fix: 修复 map 在 form 中点击 control button 会触发 submit 的问题 #177

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

Richard-Choooou
Copy link
Contributor

PR includes

  • fixed #0
  • add / modify test cases
  • documents, demos

Screenshot

Before After

@Richard-Choooou Richard-Choooou changed the title fix: 修复在 form 中点击 control button 会触发 submit 的问题 fix: 修复 map 在 form 中点击 control button 会触发 submit 的问题 May 17, 2024
@github-actions github-actions bot added bugfix and removed bugfix labels May 17, 2024
@Richard-Choooou
Copy link
Contributor Author

遇到同样的问题可以使用以下方式临时解决。

import { DrawControl } from '@antv/l7-draw'

class MyDrawControl extends DrawControl {
    initBtn(type: any) {
        const btn = super.initBtn(type);
        btn.type = 'button'
        return btn
    }
}

@heiyexing heiyexing merged commit 4eb2ceb into antvis:master Jul 11, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants