hailwood / jQuery-Tagit

The Jquery Tagit Plugin transforms an html unordered list into a unique tagging plugin.
264 stars 109 forks source link

input lose inline styles on long tags #86

Open santik opened 11 years ago

santik commented 11 years ago

If input '.tagit-new .tagit-input' has inline styles in will lose it after entering new long tag. The problem is in if (isValidWidthChange) { //input.width(newWidth); input.css('cssText', "width: " + newWidth + "px !important"); }

santik commented 11 years ago

can be fixed like this: if (isValidWidthChange) { //input.width(newWidth); //input.css('cssText', "width: " + newWidth + "px !important"); var styles = input.attr('style'); input.css('cssText', "width: " + newWidth + "px !important;"+styles); }