fix(textarea): issues with ResizeObserver inside of Firefox
parent
f481158d36
commit
67f02c2ee7
|
@ -14,7 +14,10 @@ export default {
|
|||
mounted() {
|
||||
if (this.autoResize) {
|
||||
this.observer = new ResizeObserver(() => {
|
||||
this.resize();
|
||||
// Firefox has issues without the requestAnimationFrame - ResizeObserver loop completed with undelivered notifications.
|
||||
requestAnimationFrame(() => {
|
||||
this.resize();
|
||||
});
|
||||
});
|
||||
this.observer.observe(this.$el);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue