Merge pull request #7111 from J-Michalek/fix/textarea-resize

fix(textarea): issues with ResizeObserver inside of Firefox
pull/7129/head
Tuğçe Küçükoğlu 2025-01-20 09:22:03 +03:00 committed by GitHub
commit a8cc66d391
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}