Skip to content
Discussion options

You must be logged in to vote

For now, what I can find is to use the formRef to find the closest dialog element.


    const form = useForm();
    const documentInfo = useDocumentInfo();

    const isUpdateRef = useRef(
      !!documentInfo.id && !form.formRef.current.closest('dialog')
    );

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@DanRibbens
Comment options

@jmikrut
Comment options

@Stupidism
Comment options

Answer selected by zubricks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
3 participants