fix: add exclusion list
This commit is contained in:
1 parent
3d90a2616d
commit
21232285d9
2 files changed
+4
-2
No files matched your search
@@ -369,7 +369,8 @@ class Interpreter {
|
||||
node.innerHTML = value;
|
||||
break;
|
||||
default:
|
||||
if (value == "false") {
|
||||
// https://github.com/facebook/react/blob/8b88ac2592c5f555f315f9440cbb665dd1e7457a/packages/react-dom/src/shared/DOMProperty.js#L352-L364
|
||||
if (value == "false" && name != "capture" && name != "download") {
|
||||
node.removeAttribute(name);
|
||||
} else {
|
||||
node.setAttribute(name, value);
|
||||
|
||||
@@ -348,7 +348,8 @@ impl WebsysDom {
|
||||
}
|
||||
}
|
||||
_ => {
|
||||
if value == "false" {
|
||||
// https://github.com/facebook/react/blob/8b88ac2592c5f555f315f9440cbb665dd1e7457a/packages/react-dom/src/shared/DOMProperty.js#L352-L364
|
||||
if value == "false" && ((name != "capture") && (name != "download")) {
|
||||
if let Some(el) = node.dyn_ref::<Element>() {
|
||||
let _ = el.remove_attribute(name);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user