fix(StatusBaseInput): fix dirty being set when the text didn't change

This commit is contained in:
Jonathan Rainville 2022-05-06 11:47:57 -04:00 committed by Michał Cieślak
parent e6bd9b5627
commit 37c66e33bd
1 changed files with 4 additions and 0 deletions

View File

@ -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) {