Ticket #3585 (closed bug: invalid)
fadeOut incorrectly sets display:none
| Reported by: | wichert | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.3.2 |
| Component: | effects | Version: | 1.3.1 |
| Keywords: | Cc: | wichert, flesler | |
| Blocking: | Blocked by: |
Description
fadeOut is document to only set modify the opacity. However a test with jQuery 1.2.6 shows that after having animated to an opaicty of 0 it sets a display:none on the element(s), which has many undesirable side effects.
Change History
comment:2 Changed 5 years ago by scott.gonzal
I don't see how display: none is undesirable. I think this is the most commonly expected behavior.
comment:3 Changed 4 years ago by carpii
You can work around this feature by using fadeTo("fast", 0);
This will fade the element, and set visibility to hidden, however it will leave 'display' intact and thus wont disrupt the flow of your document
comment:4 Changed 4 years ago by carpii
However it works though, please can we update the api docs for fadeIn/fadeOut?
They do say it only affects opacity, and a brief google shows quite a few people are falling foul of the same assumption
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

I agree. Can you post about this to the jQuery dev group ?