Skip to content

Conversation

nekonenene
Copy link

Proposed changes

In Safari (both iOS and macOS), if modal-content is vertically longer than modal, tapping underside the modal area could not close the modal. This PR fixes the problem by specifying overflow-y of modal-content.

Screenshots (if appropriate) or codepen:

Current

modal_current

After this change

modal_after

Types of changes

  • Bug fix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to change).

Checklist:

  • I have read the CONTRIBUTING document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Copy link

@Pierstoval Pierstoval left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I trust you on this, I don't have any iOS device to check it, but adding the overflow-y check shouldn't have an impact on other devices, so LGTM

Copy link

@DanielRuf DanielRuf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DanielRuf DanielRuf merged commit 9dbbe83 into materializecss:v1-dev Oct 17, 2020
@Smankusors Smankusors added the bug Something isn't working label Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component: modal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants