-
-
Notifications
You must be signed in to change notification settings - Fork 74
Closed
Labels
upstream issueIssue can't be fixed in dmcIssue can't be fixed in dmc
Description
This would apply to the InputWrapper component.
Per the PR comment: it's possible to stringify dict ids to make the htmlFor prop work with pattern matching
#491 (review)
This is how it's done in Dash:
// stringifies object ids used in pattern matching callbacks
stringifyId(id) {
if (typeof id !== 'object') {
return id;
}
const stringifyVal = v => (v && v.wild) || JSON.stringify(v);
const parts = Object.keys(id)
.sort()
.map(k => JSON.stringify(k) + ':' + stringifyVal(id[k]));
return '{' + parts.join(',') + '}';
}Metadata
Metadata
Assignees
Labels
upstream issueIssue can't be fixed in dmcIssue can't be fixed in dmc