qml: don't update wizard valid state from wizard pages that are not the current page
This commit is contained in:
@@ -63,6 +63,8 @@ ElDialog {
|
|||||||
Object.assign(wdata_copy, wdata)
|
Object.assign(wdata_copy, wdata)
|
||||||
var page = comp.createObject(pages, {wizard_data: wdata_copy})
|
var page = comp.createObject(pages, {wizard_data: wdata_copy})
|
||||||
page.validChanged.connect(function() {
|
page.validChanged.connect(function() {
|
||||||
|
if (page != pages.currentItem)
|
||||||
|
return
|
||||||
pages.pagevalid = page.valid
|
pages.pagevalid = page.valid
|
||||||
} )
|
} )
|
||||||
page.lastChanged.connect(function() {
|
page.lastChanged.connect(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user