Skip to content

Commit 674b9d9

Browse files
Merge pull request #241 from SenteraLLC/fix/spaces
fix button name bug
2 parents 8ea25e4 + 4e05c4a commit 674b9d9

5 files changed

Lines changed: 8 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ All notable changes to this project will be documented here.
44

55
## [unreleased]
66

7+
## [0.23.2] - Mar 18th, 2026
8+
- Fix bug where multiple spaces in a submit button name would cause the button hook to not fire.
9+
710
## [0.23.1] - Mar 18th, 2026
811
- Fix export of typescript types
912
- Add `ULabel.get_resize_toolbox_item()` static method to get the `AnnotationResizeItem` class, which has static methods that allow for programmatic control of annotation size for subtasks.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ulabel",
33
"description": "An image annotation tool.",
4-
"version": "0.23.1",
4+
"version": "0.23.2",
55
"main": "dist/ulabel.min.js",
66
"module": "dist/ulabel.min.js",
77
"types": "index.d.ts",

src/toolbox_items/submit_buttons.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export class SubmitButtons extends ToolboxItem {
168168
// Remove everything except alphanumeric, dash, underscore, space
169169
let submit_button_id = submit_button.name.replace(/[^a-zA-Z0-9-_ ]/g, "");
170170

171-
submit_button_id = submit_button_id.trim().toLowerCase().replace(" ", "-");
171+
submit_button_id = submit_button_id.trim().toLowerCase().replace(/ /g, "-");
172172
return submit_button_id;
173173
}
174174

src/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const ULABEL_VERSION = "0.23.1";
1+
export const ULABEL_VERSION = "0.23.2";

0 commit comments

Comments
 (0)