Bug Tracker

Opened 6 years ago

Closed 6 years ago

#13964 closed bug (notabug)

clone and checked property on radio buttons

Reported by: andrewborba10@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.0
Keywords: Cc:
Blocked by: Blocking:

Description

If the summary is a little vague, it's because I get the "Aw, Snap!" page if no other "possible related tickets" (I guess that's another bug in itself)

The problem: When I clone a section with radio buttons in it, the default checked buttons are not appearing checked IN CHROME ONLY. (only tested in FF and Chrome). It works fine in Firefox.

Here is the exact line I'm using to clone:

$('#zombieClassTemplate').clone(true).attr('id', 'zombieClass' + totalClasses).appendTo('#zombieClasses .accordion');

Workaround: Looping through and doing .prop('checked', false); .prop('checked', true); fixes it in chrome.

Change History (2)

comment:1 Changed 6 years ago by anonymous

Update: This is my mistake. It turns out the 'checked' attribute was being overwritten by another template class. It's not related to jQuery at all. Mark as invalid.

comment:2 Changed 6 years ago by dmethvin

Resolution: notabug
Status: newclosed
Note: See TracTickets for help on using tickets.