From 148505ba6b34a648facc56de99184aae6a496d70 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Fri, 6 May 2022 11:47:57 -0400 Subject: [PATCH] fix(StatusBaseInput): fix dirty being set when the text didn't change --- src/StatusQ/Controls/StatusBaseInput.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/StatusQ/Controls/StatusBaseInput.qml b/src/StatusQ/Controls/StatusBaseInput.qml index e1c32f1d..60e805d9 100644 --- a/src/StatusQ/Controls/StatusBaseInput.qml +++ b/src/StatusQ/Controls/StatusBaseInput.qml @@ -384,6 +384,10 @@ Item { onCursorRectangleChanged: flick.ensureVisible(cursorRectangle) onActiveFocusChanged: if (root.pristine) root.pristine = false onTextChanged: { + if (previousText === text) { + // Not sure why, but the textChanged event was triggered even if it didn't really + return + } root.dirty = true if (root.maximumLength > 0) { if (text.length > root.maximumLength) {