Ticket #10041 (closed bug: invalid)
slideToggle Removes Display None from Div
|Reported by:||anonymous||Owned by:|
I have noticed this problem since version 1.4.3. Below is an example of the problem..
My problem is that when you click the button, this should open up the div (which it does) and then when it finishes, kick off the callback where it checks if the div is set to "block" and reports "block" as the alert message. However, it doesn't do that. Instead jQuery appears to remove the display style from the div altogether (making it an empty string) and then reports "not block".
The thing is, this is for only the first time it opens. If you click the button to close and then click to reopen, it works as you would expect.
Additional Note: If I remove the inline element styling and use $("#blah").hide() to set the element first, there is no problem. So it appears to be an issue with jQuery not properly setting the element's style to "block" after it slides open?