From ddddf19e90d7f76a7c54af15f7f4cd3fe1ba5efb Mon Sep 17 00:00:00 2001 From: wei lingfeng Date: Wed, 16 Aug 2023 13:28:46 +0800 Subject: [PATCH 1/3] fix: no composing text inserted on mac wechat browser --- packages/slate-react/src/utils/environment.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/slate-react/src/utils/environment.ts b/packages/slate-react/src/utils/environment.ts index c66b4421e0..05799b59e4 100644 --- a/packages/slate-react/src/utils/environment.ts +++ b/packages/slate-react/src/utils/environment.ts @@ -52,9 +52,9 @@ export const IS_FIREFOX_LEGACY = export const IS_UC_MOBILE = typeof navigator !== 'undefined' && /.*UCBrowser/.test(navigator.userAgent) -// Wechat browser +// Wechat browser (not including mac wechat) export const IS_WECHATBROWSER = - typeof navigator !== 'undefined' && /.*Wechat/.test(navigator.userAgent) + typeof navigator !== 'undefined' && /.*(? Date: Wed, 16 Aug 2023 14:06:57 +0800 Subject: [PATCH 2/3] chore: add changeset --- .changeset/grumpy-seahorses-love.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/grumpy-seahorses-love.md diff --git a/.changeset/grumpy-seahorses-love.md b/.changeset/grumpy-seahorses-love.md new file mode 100644 index 0000000000..94470070dd --- /dev/null +++ b/.changeset/grumpy-seahorses-love.md @@ -0,0 +1,5 @@ +--- +'slate-react': patch +--- + +fix the bug that user cannot input chinese on mac wechat browser. From ef1de027854df09a2bb3c2c70f1b99be4278c74c Mon Sep 17 00:00:00 2001 From: Dylan Schiemann Date: Wed, 23 Aug 2023 04:45:28 -0700 Subject: [PATCH 3/3] Update packages/slate-react/src/utils/environment.ts --- packages/slate-react/src/utils/environment.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/slate-react/src/utils/environment.ts b/packages/slate-react/src/utils/environment.ts index 05799b59e4..952022957a 100644 --- a/packages/slate-react/src/utils/environment.ts +++ b/packages/slate-react/src/utils/environment.ts @@ -54,7 +54,8 @@ export const IS_UC_MOBILE = // Wechat browser (not including mac wechat) export const IS_WECHATBROWSER = - typeof navigator !== 'undefined' && /.*(?