You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the Bug
When creating a modal using ModalController, the property willAnimate does not appear to be part of the interface causing editors to flag an error:
Object literal may only specify known properties, and 'willAnimate' does not exist in type 'ModalOptions'.
Project then won't compile.
Steps to Reproduce
Create a modal using ModalController and specify the willAnimate property in the options using a TypeScript aware editor.
The ModalOptions interface is declared at @ionic\core\dist\types\components\modal\modal-interface.d.ts and clearly doesn't have the willAnimate property in it.
Adding the line willAnimate?: boolean; to the interface allows me to compile and the functionality appears to work as expected. Is this property being phased out or phased in?
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Bug Report
Ionic Info
Run
ionic info
from a terminal/cmd prompt and paste the output below.Describe the Bug
When creating a modal using ModalController, the property
willAnimate
does not appear to be part of the interface causing editors to flag an error:Project then won't compile.
Steps to Reproduce
Create a modal using ModalController and specify the
willAnimate
property in the options using a TypeScript aware editor.Related Code
The text was updated successfully, but these errors were encountered: