Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please makes sure these boxes are checked before submitting your PR, thank you!
发现 [类popup] 组件不支持嵌套,如果嵌套则会再关闭内层的popup组建时候 不能正确的关闭modal遮罩层
举个栗子:
再 popup内部有一个dateTime picker 组建,当我们展开关闭dateTime picker组建时候遮罩位置仍然会盖住原来的页面
解决方案:
再关闭modal的时候 判断其是否是被嵌套,如果是则将modal 通过appendChild 到最外层的parentNote下面