workspace-search buttons need type=button #2510
Labels
category: plugin
Anything in the plugins folder
good first issue
Good for newcomers
help wanted
Open for contributions
size: small
type: bug
Something isn't working
Uh oh!
There was an error while loading. Please reload this page.
Check for duplicates
Component
workspace-search's
createBtn
private helper methodDescription
We are using Blockly inside a
<form>
element (for various reasons), and the existingcreateBtn
function does not set the<button>
to be<button type='button'>
which means when users click them it erroneously causes a form-submit.The fix should in theory works on my machine(tm), be as simple as changing the helper function to read something akin to:
Reproduction steps
<form>
Stack trace
Screenshots
No response
The text was updated successfully, but these errors were encountered: