diff --git a/javascript/jquery.gwfselect.js b/javascript/jquery.gwfselect.js index e082526..777cc0a 100644 --- a/javascript/jquery.gwfselect.js +++ b/javascript/jquery.gwfselect.js @@ -91,10 +91,12 @@ li = $(li).addClass('selected'); var fontName = li.data('fontName'); var styles = this._fontNameToStyle(fontName); - this.element - .val(fontName) - .css(styles) - .trigger('change'); + this.element.css(styles); + if (this.element.val() != fontName) { + this.element + .val(fontName) + .trigger('change'); + } this._trigger('change', null, styles); this._loadFonts([fontName]); this._toggleFontList(false);