fix(StatusBaseInput): fix dirty being set when the text didn't change
This commit is contained in:
parent
e6bd9b5627
commit
37c66e33bd
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue