Fix scrolling emoji selector in modal in safari ios
This commit is contained in:
parent
d5e9a28c84
commit
09402e2537
1
changelog.d/scroll-emoji-selector-safari.fix
Normal file
1
changelog.d/scroll-emoji-selector-safari.fix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix scrolling emoji selector in modal in safari ios
|
@ -105,6 +105,7 @@ const EmojiPicker = {
|
|||||||
default: false
|
default: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
inject: ['popoversZLayer'],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
keyword: '',
|
keyword: '',
|
||||||
@ -350,6 +351,9 @@ const EmojiPicker = {
|
|||||||
|
|
||||||
return emoji.displayText
|
return emoji.displayText
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
isInModal () {
|
||||||
|
return this.popoversZLayer === 'modals'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
<span
|
<span
|
||||||
ref="header"
|
ref="header"
|
||||||
class="emoji-tabs"
|
class="emoji-tabs"
|
||||||
|
v-body-scroll-lock="isInModal"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
v-for="group in filteredEmojiGroups"
|
v-for="group in filteredEmojiGroups"
|
||||||
@ -78,6 +79,7 @@
|
|||||||
<DynamicScroller
|
<DynamicScroller
|
||||||
ref="emoji-groups"
|
ref="emoji-groups"
|
||||||
class="emoji-groups"
|
class="emoji-groups"
|
||||||
|
v-body-scroll-lock="isInModal"
|
||||||
:class="groupsScrolledClass"
|
:class="groupsScrolledClass"
|
||||||
:min-item-size="minItemSize"
|
:min-item-size="minItemSize"
|
||||||
:items="emojiItems"
|
:items="emojiItems"
|
||||||
|
Loading…
Reference in New Issue
Block a user