Skip to content

Commit

Permalink
feat(devtools): fix devtools element not show
Browse files Browse the repository at this point in the history
  • Loading branch information
zealotchen0 committed Nov 5, 2024
1 parent f4a5d22 commit cf6c1ab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions driver/js/packages/hippy-vue/src/native/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,13 @@ function getTargetNodeAttributes(targetNode: NeedToTyped) {
};
delete attributes.text;
delete attributes.value;

Object.keys(attributes).forEach((key) => {
if (key !== 'id' && key !== 'hippyNodeId' && key !== 'class') {
// value may big int that iOS do not support, should delete
delete attributes[key];
}
});
return attributes;
} catch (e) {
warn('getTargetNodeAttributes error:', e);
Expand Down

0 comments on commit cf6c1ab

Please sign in to comment.