Skip to content

Commit 3ebad7c

Browse files
committed
add .to_s to boolean data attributes
1 parent cf0e94d commit 3ebad7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/ruby_ui/sidebar/sidebar_menu_button.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def default_attrs
4141
data: {
4242
sidebar: "menu-button",
4343
size: @size,
44-
active: @active
44+
active: @active.to_s
4545
}
4646
}
4747
end

lib/ruby_ui/sidebar/sidebar_menu_sub_button.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def default_attrs
4242
data: {
4343
sidebar: "menu-sub-button",
4444
size: @size,
45-
active: @active
45+
active: @active.to_s
4646
}
4747
}
4848
end

0 commit comments

Comments
 (0)