mirror of
https://github.com/openharmony/ace_ace_engine.git
synced 2026-07-21 09:55:23 -04:00
@@ -65,8 +65,11 @@ private:
|
||||
if (refPtr) {
|
||||
if (isDeclarative_) {
|
||||
if (counts > 1) {
|
||||
bool isChecked = refPtr->GetGroupValue() == refPtr->GetValue();
|
||||
refPtr->SetGroupValue(newValue);
|
||||
refPtr->UpdateGroupValue(newValue);
|
||||
if (isChecked != (refPtr->GetValue() == newValue)) {
|
||||
refPtr->UpdateGroupValue(newValue);
|
||||
}
|
||||
} else {
|
||||
if (refPtr->GetOriginChecked()) {
|
||||
refPtr->SetGroupValue(newValue);
|
||||
|
||||
@@ -147,6 +147,9 @@ bool RenderRadio::UpdateGroupValue(const std::string& groupValue)
|
||||
if (valueChangeEvent_) {
|
||||
valueChangeEvent_(groupValue_);
|
||||
}
|
||||
if (onChange_) {
|
||||
onChange_(checked_);
|
||||
}
|
||||
return needRender;
|
||||
}
|
||||
|
||||
@@ -175,9 +178,6 @@ void RenderRadio::HandleClick()
|
||||
if (onClick_) {
|
||||
onClick_();
|
||||
}
|
||||
if (onChange_) {
|
||||
onChange_(checked_);
|
||||
}
|
||||
}
|
||||
|
||||
void RenderRadio::OffAnimationEnd()
|
||||
|
||||
Reference in New Issue
Block a user