p-dialog breakpoints is not working #10270
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
[x] bug report
Current behavior
Cannot use the correct form of
breakpoints
inp-dialog
component because of its type.The type is currently an
any[]
which should be anobject
.[breakpoints]="{'960px': '75vw', '640px': '100vw'}"
Got error: Object literal may only specify known properties, and '"960px"' does not exist in type 'any[]'.
Expected behavior
The type of the breakpoints property should be changed to
{}
What is the motivation / use case for changing the behavior?
I wanted to make my dialog responsive, like in the example.
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: