fix: Pop Component Stack back actions (#22)

Fixes https://github.com/The-Low-Code-Foundation/Code-Crusher/issues/3
This commit is contained in:
Eric Tuvesson
2024-05-20 22:49:26 +02:00
committed by GitHub
parent 4237b9290d
commit f8a2170f5d

View File

@@ -64,17 +64,19 @@ const NavigateBack = {
return;
}
if (name.startsWith('result-'))
if (name.startsWith('result-')) {
return this.registerInput(name, {
set: this.setResultValue.bind(this, name.substring('result-'.length))
});
}
if (name.startsWith('backAction-'))
if (name.startsWith('backAction-')) {
return this.registerInput(name, {
set: _createSignal({
valueChangedToTrue: this.backActionTriggered.bind(this, name)
})
set: (value) => {
value && this.backActionTriggered(name)
}
});
}
}
}
};