mirror of
https://github.com/fluxscape/fluxscape.git
synced 2026-01-11 23:02:55 +01:00
fix: Pop Component Stack back actions (#22)
Fixes https://github.com/The-Low-Code-Foundation/Code-Crusher/issues/3
This commit is contained in:
@@ -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)
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user