mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-13 18:53:59 +02:00
remove qq browser from beforeinput
compat list (#5252)
This commit is contained in:
5
.changeset/fix-qq-browser-ime-input.md
Normal file
5
.changeset/fix-qq-browser-ime-input.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'slate-react': patch
|
||||
---
|
||||
|
||||
remove qq browser from `beforeinput` compat list because it had updated its chromium core to version 94
|
@@ -45,7 +45,6 @@ import {
|
||||
IS_FIREFOX,
|
||||
IS_FIREFOX_LEGACY,
|
||||
IS_IOS,
|
||||
IS_QQBROWSER,
|
||||
IS_SAFARI,
|
||||
IS_UC_MOBILE,
|
||||
IS_WECHATBROWSER,
|
||||
@@ -1070,7 +1069,6 @@ export const Editable = (props: EditableProps) => {
|
||||
!IS_SAFARI &&
|
||||
!IS_FIREFOX_LEGACY &&
|
||||
!IS_IOS &&
|
||||
!IS_QQBROWSER &&
|
||||
!IS_WECHATBROWSER &&
|
||||
!IS_UC_MOBILE &&
|
||||
event.data
|
||||
|
@@ -44,10 +44,6 @@ export const IS_FIREFOX_LEGACY =
|
||||
navigator.userAgent
|
||||
)
|
||||
|
||||
// qq browser
|
||||
export const IS_QQBROWSER =
|
||||
typeof navigator !== 'undefined' && /.*QQBrowser/.test(navigator.userAgent)
|
||||
|
||||
// UC mobile browser
|
||||
export const IS_UC_MOBILE =
|
||||
typeof navigator !== 'undefined' && /.*UCBrowser/.test(navigator.userAgent)
|
||||
|
Reference in New Issue
Block a user