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
{{ message }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
docs(changelog): add breaking change to md-selected-text for 1.1.2 (#11442)
<!--
Filling out this template is required! Do not delete it when submitting a Pull Request! Without this information, your Pull Request may be auto-closed.
-->
## PR Checklist
Please check that your PR fulfills the following requirements:
- [x] The commit message follows [our guidelines](https://github.com/angular/material/blob/master/.github/CONTRIBUTING.md#-commit-message-format)
- [x] Tests for the changes have been added or this is not a bug fix / enhancement
- [x] Docs have been added, updated, or were not required
## PR Type
What kind of change does this PR introduce?
<!-- Please check the one that applies to this PR using "x". -->
```
[ ] Bugfix
[ ] Enhancement
[x] Documentation content changes
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Infrastructure changes
[ ] Other... Please describe:
```
## What is the current behavior?
#10912 (comment)
<!-- Please describe the current behavior that you are modifying and link to one or more relevant issues. -->
Issue Number:
Fixes#10912.
## What is the new behavior?
We document this API change as a breaking change in 1.1.2 and provide guidance on code migration.
## Does this PR introduce a breaking change?
```
[ ] Yes
[x] No
```
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->
<!-- Note that breaking changes are highly unlikely to get merged to master unless the validation is clear and the use case is critical. -->
## Other information
* autocomplete: The autocomplete validator `md-require-match` no longer matches if the search text is empty
445
+
* **autocomplete:** The autocomplete validator `md-require-match` no longer matches if the search text is empty.
446
+
* **select:** `md-selected-text` now only accepts text. It used to accept and render html but this was an XSS vulnerability.
447
+
It was fixed in: block xss on md-select-label ([#10023](https://github.com/angular/material/issues/10023)) ([f7ecb4f](https://github.com/angular/material/commit/f7ecb4f)).
446
448
449
+
We have added a new `md-selected-html` API for `md-select`. It accepts an expression to be evaluated
450
+
that will return a string to be displayed as a placeholder in the select input box when it is
451
+
closed. The value will be treated as html. The value **must** either be explicitly marked as
452
+
**trustedHtml** or the **ngSanitize** module must be loaded.
0 commit comments