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 Oct 18, 2024
1 parent 26a9d93 commit ba5cfb0
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 ba5cfb0

Please sign in to comment.