You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// HTML template for dropdown optionsoptionTemplate='<li class="{{ value }}"><a data-dk-dropdown-value="{{ value }}">{{ text }}</a></li>';
After:
// HTML template for dropdown optionsoptionTemplate='<li><a data-dk-dropdown-value="{{ value }}">{{ text }}</a></li>';
That makes the <li> do not get the empty class.
This amendment is to remove the attribute, it will not let the
with empty class when another item is selected from the dropdown.
Before:
// Set the currently selected optionfunction_setCurrent($current,$dk){$dk.find('.dk_option_current').removeClass('dk_option_current');$current.addClass('dk_option_current');_setScrollPos($dk,$current);}
After:
// Set the currently selected optionfunction_setCurrent($current,$dk){$dk.find('.dk_option_current').removeAttr('class');$current.addClass('dk_option_current');_setScrollPos($dk,$current);}
Another suggestion is if the <select> when it is necessary to direct a url to do something similar to javascript below. It is widely used in archive (dropdown) of Wordpress.
The list can remove the class.
Before:
After:
That makes the
<li>
do not get the empty class.This amendment is to remove the attribute, it will not let the
Before:
After:
Another suggestion is if the
<select>
when it is necessary to direct a url to do something similar to javascript below. It is widely used in archive (dropdown) of Wordpress.Hope that helps improve the plugin!
www.rhianmolinari.com
The text was updated successfully, but these errors were encountered: