I noticed that font related styles from the visible input were not being properly copied to the hidden div used for calculating the size. This was causing the size of the input to be incorrect (too large), as the font-size of the div was larger than that of the input.
After changing this line to return when the compoennt is NOT mounted it seemed to fix the issue
e.g. if (!this.mounted || !window.getComputedStyle) {
I noticed that font related styles from the visible input were not being properly copied to the hidden div used for calculating the size. This was causing the size of the input to be incorrect (too large), as the font-size of the div was larger than that of the input.
After changing this line to return when the compoennt is NOT mounted it seemed to fix the issue
e.g.
if (!this.mounted || !window.getComputedStyle) {