Skip to content

Uncaught TypeError: this.dialogTarget is null (v1.x) #16

Closed Answered by Braden-077
nrichardson1951 asked this question in Q&A
Discussion options

You must be logged in to vote

@nrichardson1951 Thank you for your question! Do you have any elements on your page with the data attribute id? The way we have things setup internally, we have something like this:

  <div class="modal-wrapper flex items-center justify-center modal-wrapper--active" id="confirm">
    <div class="modal-wrapper__backdrop confirm-cancel"></div>
    <div class="modal text-center margin-md card-padded">
      <h3 id="confirm-title">Are you sure?</h3>
      <div class="margin-bottom-lg" id="confirm-body">
        <p>This action cannot be undone.</p>
      </div>
      <div class="flex justify-center items-center gap-sm">
        <button class="confirm-cancel btn btn-primary btn--outline" id="con…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@Braden-077
Comment options

@OutlawAndy
Comment options

Answer selected by OutlawAndy
Comment options

You must be logged in to vote
2 replies
@Braden-077
Comment options

@OutlawAndy
Comment options

Comment options

You must be logged in to vote
1 reply
@OutlawAndy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants