Bug Tracker

Opened 8 years ago

Closed 8 years ago

#9151 closed bug (invalid)

Simple toggleClass() is not working correctly

Reported by: adardesign@… Owned by: adardesign@…
Priority: low Milestone: 1.next
Component: attributes Version: 1.6
Keywords: Cc:
Blocked by: Blocking:

Description

Please see isolated bug

http://jsfiddle.net/adardesign/KMZbS/

Click "update" now user should be able to click and choose all tags, Now "save" And try to update again expected result = its should work again but it doesn't work till its "saved again" Tried multiple versions of jQuery.

I tried to debugg with console, and narrowed it down to the toggleClass() method. Thanks

Change History (5)

comment:1 Changed 8 years ago by timmywil

Component: unfiledattributes
Owner: set to adardesign@…
Priority: undecidedlow
Status: newpending

It works for me, which browser are you using?

comment:2 in reply to:  1 Changed 8 years ago by anonymous

Replying to timmywil:

It works for me, which browser are you using?

Google chrome on mac

comment:3 Changed 8 years ago by timmywil

As am I. I've created a reduced test case because maybe I'm missing the problem.

http://jsfiddle.net/timmywil/RHsu4/

Please update mine to show the breakage if you could.

comment:4 Changed 8 years ago by anonymous

@ timmywil Thanks, i narrowed down the problem to a misuse of a closure. As in my case it captured the state of the element without the class.

Anyway, thanks. I think you can close this bug.

Thanks again.

comment:5 Changed 8 years ago by timmywil

Resolution: invalid
Status: pendingclosed

Thank you for looking into it.

Note: See TracTickets for help on using tickets.