fadein fade value

fadein fade value

lafalafa Posts: 2Questions: 0Answers: 0

Hi all,
I would report a behaviour that I don't know if it's a bug.
When trying to apply a fade value on a collection button, I only get it applied on collection popup fadeout, while fadein seems to get a default value.
Looking at the source code, I found that on function _popover there's a call to
_fadeIn(display.insertAfter(hostNode));
passing any fade value on _fadeIn, while on _fadeOut it's passed options.fade

_fadeOut(
$('.dt-button-collection'),
options.fade,
function () {
$(this).detach();
}
);

Is it for some reason an expected behaviour or is it a bug?
Obviously if I pass options.fade to _fadeIn call, it does work as I was expecting.

-Lafa-

Replies

  • allanallan Posts: 63,213Questions: 1Answers: 10,415 Site admin

    Hi Lafa,

    That sounds like an omission to me. Thanks for letting me know about it, I’ll get it fixed for the next patch release of Buttons.

    Allan

  • lafalafa Posts: 2Questions: 0Answers: 0

    Hi Allan,
    you're welcome!

This discussion has been closed.