refactor(modal): allow dragging when expandToScroll is false (#30235)

This commit is contained in:
Maria Hutt
2025-03-10 11:39:10 -07:00
committed by GitHub
parent 57b784aa53
commit 335672d523
3 changed files with 20 additions and 8 deletions

View File

@ -136,9 +136,12 @@ export class Modal implements ComponentInterface, OverlayInterface {
* and `initialBreakpoint` are set.
*
* If `true`, scrolling or dragging anywhere in the modal will first expand
* it to the next breakpoint. Once fully expanded, scrolling will affect the content.
* If `false`, scrolling will always affect the content, and the modal will only expand
* when dragging the header or handle.
* it to the next breakpoint. Once fully expanded, scrolling will affect the
* content.
* If `false`, scrolling will always affect the content. The modal will
* only expand when dragging the header or handle. The modal will close when
* dragging the header or handle. It can also be closed when dragging the
* content, but only if the content is scrolled to the top.
*/
@Prop() expandToScroll = true;