Skip to content

Commit 02a1d48

Browse files
committed
radio buttons need a name attr for keyboard navigation
1 parent 6d2ea49 commit 02a1d48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/glow/primitives.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2919,7 +2919,7 @@
29192919
if (attrs.name !== null && (__radio_buttons[attrs.name] === undefined))
29202920
__radio_buttons[attrs.name] = null
29212921

2922-
attrs.jradio = $(`<input type="radio">`).css({width:'16px', height:'16px'}).appendTo(attrs.pos)
2922+
attrs.jradio = $(`<input type="radio" name="${attrs.name}">`).css({width:'16px', height:'16px'}).appendTo(attrs.pos)
29232923
.click( function() {
29242924
if (attrs.name === null) {
29252925
attrs.checked = !attrs.checked

0 commit comments

Comments
 (0)