the direction option, i.e. "TOP" appears to be case sensitive and is causing unexpected results if "top" (bottom, etc.) is used instead.
It might be worth adding a toLowerCase() to the option to prevent this unexpected behavior from occurring as it has the potential to confuse new users.
the direction option, i.e. "TOP" appears to be case sensitive and is causing unexpected results if "top" (bottom, etc.) is used instead.
It might be worth adding a toLowerCase() to the option to prevent this unexpected behavior from occurring as it has the potential to confuse new users.