Skip to content

Commit 31fc0a9

Browse files
authored
Merge branch 'master' into optiondicts
2 parents 2ec6a1c + 74774da commit 31fc0a9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

docs/source/user_migration_guides.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ For these, it is no longer possible to use `dict`s or other mapping types as val
4848
`options` trait. Using mapping types in this way has been deprecated since version 7.4, and
4949
will now raise a `TypeError`.
5050

51-
Suggested migration: Clean up the `options` use. The following snippet can be used to convert
52-
a `dict` to the new format: `w.options = tuple((str(k), v) for k, v in your_dict.items())`.
51+
Suggested migration: Instead of using a dict `my_dict` as options, use `my_dict.items()`, which returns the items in `my_dict` as key-value pairs. For example, `Select(options=my_dict.items())`.
5352

5453
#### Description Sanitization
5554

packages/base-manager/src/manager-base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function default_inline_sanitize(s: string): string {
7070
'ul',
7171
];
7272
const allowedAttributes = {
73-
'*': ['aria-*', 'style', 'title'],
73+
'*': ['aria-*', 'class', 'style', 'title'],
7474
a: ['href'],
7575
img: ['src'],
7676
style: ['media', 'type'],

0 commit comments

Comments
 (0)