autosize icon indicating copy to clipboard operation
autosize copied to clipboard

Firefox isue: style is null

Open cmscott2 opened this issue 9 years ago • 2 comments

In autosize.js:67:4 an error occurs because style is null. This occurs in the init function, under the assign(ta) function, where style is initialized to window.getComputedStyle(ta, null).

After throwing a try catch around autosize($'textarea')) it works, and just logs that the style is null to the console.

cmscott2 avatar Jul 18 '16 15:07 cmscott2

What this inside an iframe? Found an open ticket about that on the mozilla tracker: https://bugzilla.mozilla.org/show_bug.cgi?id=548397

jackmoore avatar Jul 18 '16 18:07 jackmoore

possibly related to https://github.com/jackmoore/autosize/issues/329

pppdns avatar Jul 05 '17 22:07 pppdns