apply onRest style when work was started#301
Conversation
|
Checks for Have you checked every single case from example page (I wish I had time to put e2e UI tests for it...)? PS: I do not remember exact reason why I put those checks in place (it was few years ago after all), but there was a serious reason to do so. Every refactor I've started from the simplest possible solution and made sure it covers all the necessary cases (see above). At some iteration I definitely had the code as simple as you suggest, but it was not working in some situations. |
|
Changed the PR to not skip the check but ensure that the This should not trigger |
|
@nkbt : any news on this? |
|
My life is a bit hectic right now, didn't have a chance to look. Sorry about that. Would be much easier if I had e2e ui tests but you never have enough time for opensource :( |
|
@palortoff I have the same problem ) |
|
@nkbt : sorry to bother you again. I need it for a project that is about to be released and I would like to avoid using a fork of |
When
Collapseis opened, then closed quickly before animation has started (heightis still 0), rest will not apply the final closed style leaving the component inonWorkstyle for open.This results in the
Collapsedisplayed as open even though it should be closed.Similar behavior in reverse case.
By removing the
hasOpened/hasClosedcheck inonRestwe assure that the final style is always applied.