Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: autoResize issue with v-show by implementing ResizeObserver
- Problem: When using v-show to toggle the visibility of the Textarea component, the auto-resize functionality fails because this.$el.offsetParent returns null when the element is hidden. - Solution: Added a ResizeObserver to detect size changes and adjusted the resize logic to handle visibility changes. Now, the Textarea component correctly auto-resizes when it becomes visible and when its content or parent size changes.
- Loading branch information