Comments (2)
In first dialog this code will cause to close the first dialog when open the second dialog:
<form [formGroup]= "form" (ngSubmit)="submit(form)">
<mat-dialog-content>
<button (click)="openSecondDialog()" >OpenSecondDialog</button>
</mat-dialog-content>
<mat-dialog-actions>
<button type="submit" >Save</button>
</mat-dialog-actions>
</form>
The working example that not close first dialog:
<form [formGroup]= "form" >
<mat-dialog-content>
<button (click)="openSecondDialog()" >OpenSecondDialog</button>
</mat-dialog-content>
<mat-dialog-actions>
<button type="button" (click)="submitMethod(form)" >Save</button>
</mat-dialog-actions>
</form>
It will help other people from digging for hours to see the cause.
from material.
OK, thank you for sharing that workaround Cristian. However, I'm going to close this since there isn't a StackBlitz reproduction that can be used to debug this, plus there seems to be a workaround.
from material.
Related Issues (20)
- Why does this exist HOT 1
- Update project to gulp@4 HOT 1
- Update project to gulp-sass@5 HOT 1
- There is a problem with the example HOT 1
- datepicker: invalid value on first load from moment HOT 4
- https://ng-matero.github.io/extensions/ HOT 2
- "Platform" module fails to detect Edge browser
- select: fails to close popover on option click HOT 1
- card actions- add center alignment in card.d.ts HOT 1
- Md-Dialog Box is not draggable and Movable so there should be option for drag and drop. If there is already supported please give me coed HOT 1
- select: changes scroll position when closed with bootstrap 5 HOT 1
- docs: Travis CI removal broke ability to update documentation site on commit HOT 2
- How to access ng-content in material dialog HOT 1
- Problem using Content-Security-Policy with Print Syle HOT 1
- @angular/material installation fails with unexpected error: unable to get local issuer certificate HOT 1
- Radio button (mat-radio) Click effect not disappear until focus lost HOT 1
- datepicker: works incorrectly when ng-model-options="{timezone: 'UTC'}" is set HOT 3
- $mdDialog throws TypeError: o.cleanupElement is not a function HOT 1
- MatDatePicker implementation issue: Cannot read properties of undefined (reading 'subscribe') for MatDatepickerInputBase HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from material.