mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 08:09:32 +08:00
refactor(modal): allow dragging when expandToScroll is false (#30235)
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user