79730: Add labels around FilterInputSuggestionsComponent inputs

This commit is contained in:
Yura Bondarenko
2021-06-01 09:29:01 +02:00
parent ffb320373d
commit 5b490203b2
7 changed files with 71 additions and 14 deletions

View File

@@ -53,6 +53,11 @@ export class InputSuggestionsComponent implements ControlValueAccessor, OnChange
*/
@Input() valid = true;
/**
* Label for the input field. Used for screen readers.
*/
@Input() label? = '';
/**
* Output for when the form is submitted
*/
@@ -106,10 +111,10 @@ export class InputSuggestionsComponent implements ControlValueAccessor, OnChange
@Input() disabled = false;
propagateChange = (_: any) => {
/* Empty implementation */
}
};
propagateTouch = (_: any) => {
/* Empty implementation */
}
};
/**
* When any of the inputs change, check if we should still show the suggestions