Skip to content

Commit

Permalink
Don't allow saving empty event ref (fixes #139)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMStraub committed Sep 12, 2023
1 parent c36f72a commit d567a8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/GrampsjsFormEventRef.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ class GrampsjsFormEventRef extends GrampsjsObjectForm {
</grampsjs-form-select-type>
`
}

get isValid() {
return !!this.data.ref
}
}

window.customElements.define('grampsjs-form-eventref', GrampsjsFormEventRef)

0 comments on commit d567a8f

Please sign in to comment.