Skip to content

Commit 302a94b

Browse files
DragonDragonDDDjianliang00
authored andcommitted
[BugFix][RadonFiber] Preserve explicit attribute override on Radon architecture in SetNativeProps
When setting native props, attributes passed via style used the style path, but non-style attributes always called SetAttribute(key_str, value) with default override behavior. On Radon architecture, this caused the explicit override flag to be lost, leading to incorrect attribute precedence. This change routes non-style attributes through SetAttribute(key_str, value, false) when running on Radon, preserving the explicit override semantics expected by Radon while keeping existing behavior for other architectures. AutoSubmit: true AutoLand: release/3.6, release/3.5 issue: m-6817215754
1 parent 21a6634 commit 302a94b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/renderer/dom/fiber/fiber_element.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2583,7 +2583,11 @@ void FiberElement::SetNativeProps(
25832583
EXEC_EXPR_FOR_INSPECTOR(element_manager()->OnSetNativeProps(
25842584
this, key.ToString(), value, true));
25852585
} else {
2586-
SetAttribute(key_str, value);
2586+
if (IsRadonArch()) {
2587+
SetAttribute(key_str, value, false);
2588+
} else {
2589+
SetAttribute(key_str, value);
2590+
}
25872591
EXEC_EXPR_FOR_INSPECTOR(element_manager()->OnSetNativeProps(
25882592
this, key.ToString(), value, false));
25892593
}

0 commit comments

Comments
 (0)