Groups
Sign in
Groups
KnockoutJS
Conversations
About
Send feedback
Help
Found a bug in version 3.3.0 on the checked property of radio input type
43 views
Skip to first unread message
Joe Dean
unread,
May 22, 2015, 2:21:17 PM
5/22/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to knock...@googlegroups.com
This snippet does not work in version 3.3.0. The radio button is always unchecked.
<input
type
=
"radio"
value
=
"1"
data-bind
=
"checked: true"
/>
But does work in 2.2.0
Joe Dean
unread,
May 22, 2015, 2:25:56 PM
5/22/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to knock...@googlegroups.com
It does work for input type checkbox in 3.3.0 btw
Michael Best
unread,
May 22, 2015, 9:57:31 PM
5/22/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to knock...@googlegroups.com
In 3.0.0, the logic was changed to require strict equality for radio buttons. So you'd need to use
checked: '1'
for this to work.
See
http://knockoutjs.com/upgrade-notes/v3.0.0.html
-- Michael
Reply all
Reply to author
Forward
0 new messages