We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddc8ab9 commit 84184adCopy full SHA for 84184ad
1 file changed
lib/src/util/map_util.dart
@@ -128,18 +128,19 @@ void forwardUnconsumedPropsV2(Map props, {
128
if (keySetsToOmit != null) {
129
keySetsToOmit.forEach((keySet) => keySetToOmit.addAll(keySet));
130
}
131
+ if (omitReactProps) {
132
+ keySetToOmit.addAll(const ['key', 'ref', 'children']);
133
+ }
134
135
for (final key in props.keys) {
- if (keysToOmit != null && keysToOmit.contains(key)) continue;
136
+ if (keySetToOmit.contains(key)) continue;
137
138
if (onlyCopyDomProps && !((key is String && (key.startsWith('aria-') ||
139
key.startsWith('data-'))) ||
140
_validDomProps.contains(key))) {
141
continue;
142
143
- if (omitReactProps && const {'key', 'ref', 'children'}.contains(key)) continue;
-
144
propsToUpdate[key] = props[key];
145
146
0 commit comments