diff --git a/es/components/userRelation/upsert/onUser/web.pc.js b/es/components/userRelation/upsert/onUser/web.pc.js index 8bc794c7c..40b30ddda 100644 --- a/es/components/userRelation/upsert/onUser/web.pc.js +++ b/es/components/userRelation/upsert/onUser/web.pc.js @@ -32,7 +32,7 @@ export default function Render(props) { <> { const strValue = e.target.value; - if (isNew) { + if (isNew || allowUpdateName) { update({ name: strValue, }); @@ -44,7 +44,7 @@ export default function Render(props) { <> { const strValue = e.target.value; - if (isNew) { + if (isNew || allowUpdateNickname) { update({ nickname: strValue, }); diff --git a/src/components/userRelation/upsert/onUser/web.pc.tsx b/src/components/userRelation/upsert/onUser/web.pc.tsx index ce97fcb0a..034108667 100644 --- a/src/components/userRelation/upsert/onUser/web.pc.tsx +++ b/src/components/userRelation/upsert/onUser/web.pc.tsx @@ -96,7 +96,7 @@ export default function Render( disabled={!isNew && !allowUpdateName} onChange={(e) => { const strValue = e.target.value; - if (isNew) { + if (isNew || allowUpdateName) { update({ name: strValue, }); @@ -114,7 +114,7 @@ export default function Render( value={nickname} onChange={(e) => { const strValue = e.target.value; - if (isNew) { + if (isNew || allowUpdateNickname) { update({ nickname: strValue, });