You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this.dialogService.open(OrderDetailComponent, {
closeOnBackdropClick: false,
context: {
// Error: TS2322: Type 'Order' is not assignable to type 'InputSignal<Order> | undefined'
data: data,
},
});
Expected behavior:
The input model should be updated, not tried to be replaced by new value
Steps to reproduce:
Create a component with inputSignal (input.required());
Open the component with context specifying our inputSignal
This makes an exception for input and model signals in the DialogConfig
context, so the typehint will show as the type of the signal's value,
but internally it will create a signal with the passed value.
Technically these will just be readonly signals instead of input or model
signals, but since components used as a dialog do not support regular
outputs anyway, it should not matter. When used in a regular context the
input signal will not be overwritten and work as usual.
closesakveo#3256
(I would not classify this as a bug but a missing feature instead)
This makes an exception for input and model signals in the DialogConfig
context, so the typehint will show as the type of the signal's value,
but internally it will create a signal with the passed value.
Technically these will just be readonly signals instead of input or model
signals, but since components used as a dialog do not support regular
outputs anyway, it should not matter. When used in a regular context the
input signal will not be overwritten and work as usual.
closesakveo#3256
(I would not classify this as a bug but a missing feature instead)
Issue type
I'm submitting a ...
Issue description
Current behavior:
Expected behavior:
The input model should be updated, not tried to be replaced by new value
Steps to reproduce:
inputSignal
(input.required()
);context
specifying ourinputSignal
Related code:
Other information:
npm, node, OS, Browser
Angular, Nebular
The text was updated successfully, but these errors were encountered: