angular.js icon indicating copy to clipboard operation
angular.js copied to clipboard

jqlite.show() behaves differently from what Jquery does

Open Codier opened this issue 15 years ago • 2 comments

We made a decision to make jqlite.show() behaves differently from jquery.show(). To be more specific, if there is some cascading rule that prevents an element from showing up and we cannot retrieve its old display attribute value, we just set it to block. This is very unexpected and causes many surprises and problems. We probably should revert this commit : https://github.com/angular/angular.js/pull/445

Codier avatar Aug 02 '11 21:08 Codier

we need to isolate the existing issue and see if we can do something about it. I think that reverting is not an option, because the old behavior was also buggy, it just exhibited the bugs in different scenarios.

IgorMinar avatar Aug 03 '11 06:08 IgorMinar

after a long discussion we agreed that supporting element#show requires too much code so we should left that to jquery

the changes from pull request 445 were reverted in 793ecb48176ad6d8866ce38f4242971c81ceda31

IgorMinar avatar Aug 19 '11 22:08 IgorMinar