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 r4bbit.eth
parent d960c6dcec
commit 148505ba6b
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) {