Skip to content

Commit

Permalink
feat: form slot crrent 判空
Browse files Browse the repository at this point in the history
  • Loading branch information
yx376642000 committed Jul 26, 2023
1 parent eabf8c6 commit 698a7d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/quarkd/src/form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class QuarkForm extends QuarkElement {
onSlotChange = () => {
if (this.slotRef.current) {
const allFormItes = slotAssignedElements(
this.slotRef.current.assignedNodes()
this.slotRef.current?.assignedNodes()
).filter((item) => item.tagName === "QUARK-FORM-ITEM");

this.formItems = allFormItes.filter((item) => item.prop);
Expand Down

0 comments on commit 698a7d6

Please sign in to comment.