Skip to content

form-field: partial update to use signals#26

Open
saithis wants to merge 6 commits intomasterfrom
form-field-signals
Open

form-field: partial update to use signals#26
saithis wants to merge 6 commits intomasterfrom
form-field-signals

Conversation

@saithis
Copy link
Collaborator

@saithis saithis commented Mar 31, 2025

No description provided.


/** Either the MatFormFieldControl or a DummyMatFormFieldControl */
private matFormFieldControl!: MatFormFieldControl<unknown>;
private matFormFieldControl = computed<MatFormFieldControl<unknown>>(() => this._control() || this.#lazyDummyMatformFieldControl.val);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not introduce new linter warnings. This should be readonly

/** Indicates if the control is no real MatFormFieldControl */
public emulated = false;
public get emulated() {
return this.matFormFieldControl instanceof DummyMatFormFieldControl;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

()

@@ -52,16 +52,23 @@ export class DummyMatFormFieldControl implements MatFormFieldControl<string>, On

public autofilled?: boolean;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while at it - do you mind changing the indentation on the demo ?
image

each first line should be less indented.
and overall both blocks should be aligned, currently the 2nd block of css is indented less o.O

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants