Merge pull request #7111 from J-Michalek/fix/textarea-resize
fix(textarea): issues with ResizeObserver inside of Firefoxpull/7129/head
commit
a8cc66d391
|
@ -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