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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name.startsWith('result-'))
|
if (name.startsWith('result-')) {
|
||||||
return this.registerInput(name, {
|
return this.registerInput(name, {
|
||||||
set: this.setResultValue.bind(this, name.substring('result-'.length))
|
set: this.setResultValue.bind(this, name.substring('result-'.length))
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (name.startsWith('backAction-'))
|
if (name.startsWith('backAction-')) {
|
||||||
return this.registerInput(name, {
|
return this.registerInput(name, {
|
||||||
set: _createSignal({
|
set: (value) => {
|
||||||
valueChangedToTrue: this.backActionTriggered.bind(this, name)
|
value && this.backActionTriggered(name)
|
||||||
})
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user