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

Updated code for moveLeft function to address issue where code not executed #234

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

Conversation

TheNephalim
Copy link

updated the code for moveLeft - moved the code calling the beforeMoveLeft above the call to the main moveLeft callback. Removed the return before the call to self.callbacks.moveToLeft otherwise the rest of the code in the method is not executed.

robert.eberhart added 2 commits September 17, 2021 17:41
… that used the same name; changed the initialization method name so it no longer conflicted with the other library.

updated the code for moveLeft - moved the code calling the beforeMoveLeft above the call to the main moveLeft callback.  Removed the return before the call to self.callbacks.moveToLeft otherwise the rest of the code in the method is not executed.
…Left above the call to the main moveLeft callback. Removed the return before the call to self.callbacks.moveToLeft otherwise the rest of the code in the method is not executed.
@crlcu
Copy link
Owner

crlcu commented Feb 16, 2024

Please run the gulp command as well so the minified version gets updated.
Thanks

@TheNephalim
Copy link
Author

Ran the gulp command and generated the minified version of the library.

@TheNephalim
Copy link
Author

Is there anything else I need to do?

@crlcu
Copy link
Owner

crlcu commented Feb 26, 2024

@TheNephalim could you fix the conflicts please for the package-lock.json ?

robert.eberhart and others added 7 commits April 19, 2024 11:05
…- the variable isSafari was picking up a chrome browser as Safari

if the intent is determine whether the browser is Chrome, there should be a separate variable like isChrome indicating the browser is a Chrome browser
updated the fireSearch to always return true - considering getting rid of this method and the logic that uses it
prefer to have it fire on any number of characters entered and not just two
updated the code that searches the options to use native JavaScript - the logic in jQuery that searches for the options added an unacceptable level of overhead
when the number of options went into the thousands; tested using a data set having close to 8000 options and the search function was very slow
using native JavaScript instead of jQuery sped up the search funtion dramatically
these updates are found in the methods filterItems and unfilterItems
added a method searchItem that uses indexOf instead of RegExp because it is faster than RegExp
added showItem and hideItem that duplicates the functionality of mHide and mShow using vanilla JavaScript instead of jQuery
also added unfilterOptionGroup and filterOptionGroups that also use vanilla JavaScript instead of jQuery and a slightly different logic - i.e., the methods are
self contained
Updated the events function that handles the calls for filtering/unfiltering options to use the newly introduced methods
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.

None yet

2 participants