From 2f2ffae325be7c66c1ecbd9510960c4e7b5f1eb4 Mon Sep 17 00:00:00 2001 From: guanbinrui <52657989+guanbinrui@users.noreply.github.com> Date: Fri, 22 Sep 2023 11:20:53 +0800 Subject: [PATCH] fix: overlength blessing words (#10818) * chore: update lock file * fix: constraint blessing words length --- .../plugins/RedPacket/src/SiteAdaptor/RedPacketERC20Form.tsx | 3 +++ .../RedPacket/src/SiteAdaptor/RedpacketMessagePanel.tsx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/plugins/RedPacket/src/SiteAdaptor/RedPacketERC20Form.tsx b/packages/plugins/RedPacket/src/SiteAdaptor/RedPacketERC20Form.tsx index 783dc33a8e65..5e89a6252a15 100644 --- a/packages/plugins/RedPacket/src/SiteAdaptor/RedPacketERC20Form.tsx +++ b/packages/plugins/RedPacket/src/SiteAdaptor/RedPacketERC20Form.tsx @@ -359,6 +359,9 @@ export function RedPacketERC20Form(props: RedPacketFormProps) { onChange={(e) => setMessage(e.target.value)} placeholder={t.blessing_words()} value={message} + inputProps={{ + maxLength: 100, + }} /> diff --git a/packages/plugins/RedPacket/src/SiteAdaptor/RedpacketMessagePanel.tsx b/packages/plugins/RedPacket/src/SiteAdaptor/RedpacketMessagePanel.tsx index 5876484b5303..95049ed82947 100644 --- a/packages/plugins/RedPacket/src/SiteAdaptor/RedpacketMessagePanel.tsx +++ b/packages/plugins/RedPacket/src/SiteAdaptor/RedpacketMessagePanel.tsx @@ -42,7 +42,7 @@ export function RedpacketMessagePanel(props: RedpacketMessagePanelProps) { onChange(e.target.value)} - inputProps={{ placeholder: t.best_wishes() }} + inputProps={{ maxLength: 100, placeholder: t.best_wishes() }} value={message} />