From f41bd9ae469e3b2a9a7d0e5c6e82e53be026b489 Mon Sep 17 00:00:00 2001 From: Dan Popescu Date: Fri, 2 Dec 2022 21:57:59 +0200 Subject: [PATCH] fix(QInput): set margin first and then decrease height to keep parent scroll (regressing from fixing firefox undo) #15023 --- ui/src/components/input/QInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/input/QInput.js b/ui/src/components/input/QInput.js index ccc390a2361..fdd302a57ba 100644 --- a/ui/src/components/input/QInput.js +++ b/ui/src/components/input/QInput.js @@ -297,8 +297,8 @@ export default Vue.extend({ // but keep the total control size the same // Firefox rulez #14263, #14344 this.$q.platform.is.firefox !== true && (inp.style.overflow = 'hidden') - inp.style.height = '1px' parentStyle.marginBottom = (inp.scrollHeight - 1) + 'px' + inp.style.height = '1px' inp.style.height = inp.scrollHeight + 'px' inp.style.overflow = overflow