Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes Bootstrap3 formatting #60

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

CaMer0n
Copy link

@CaMer0n CaMer0n commented Feb 18, 2021

Hello. I haven't tested this with Bootstrap4, but it definitely works with Bootstrap 3.
Bootstrap4 can use ul and div for dropdown menus, but bootstrap3 only ul. So version 2 did not work well with Bootstrap 3.
I just realized (looking at the diff) that you implemented 'endKey', but it was not in the 'dist' version, only the 'src' version.
I added it as well. I needed the option to use a line-break \n after an insert, instead of a blank space.
Also, long lists would flow off the page, so I add an overflow-y to the ul in the css file.

Anyway, a pull-request for your consideration.

@@ -259,7 +262,7 @@
//if (!$prev.length) return false;

if ($this.is('.active')) {
if (!$prev.is('.d-none')) {
if (!$prev.is('.hidden')) {
$this.removeClass('active');
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this may need to be !$prev.is('.hidden') || !$prev.is('.d-none')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant