Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
15
Prevent dialog closing on escape button for IgxDialogComponent
posted

<igx-dialog #PasswordChangeDialog>
    <div class="card" style="width:450px;">
      <div class="igx-grid-toolbar--compact">
        <span class="igx-grid-toolbar__title">Change Password</span>
        <div class="igx-grid-toolbar__custom-content">
          <button type="submit" accesskey="s" igxButton="outlined" displayDensity="compact" (click)="ChangPassword()" [disabled]="false">
            <div class="igx-grid-toolbar__button-space">
              <i class="far fa-save"></i>
              <span> Save</span>
            </div>
          </button>
        </div>
      </div>

</div>

</igx-dialog>

I want to prevent closing of dialog box when user clicks on escape button . This screen is mandatory and we don't want to close it without saving it. Now user can close this dialog on pressing escape button . Please anyone let us know how to do this.

Parents
No Data
Reply Children
No Data