Disallow multiline in About editing
This commit is contained in:
parent
9a1430a460
commit
c99066de9b
1 changed files with 2 additions and 1 deletions
|
@ -186,6 +186,7 @@ export const ProfileEditor = ({
|
|||
}
|
||||
|
||||
focusNode.focus();
|
||||
focusNode.setSelectionRange(focusNode.value.length, focusNode.value.length);
|
||||
}, [editState]);
|
||||
|
||||
useEffect(() => {
|
||||
|
@ -328,7 +329,7 @@ export const ProfileEditor = ({
|
|||
setStagedProfile(profileData => ({
|
||||
...profileData,
|
||||
aboutEmoji: stagedProfile.aboutEmoji,
|
||||
aboutText: value,
|
||||
aboutText: value.replace(/(\r\n|\n|\r)/gm, ''),
|
||||
}));
|
||||
} else {
|
||||
setStagedProfile(profileData => ({
|
||||
|
|
Loading…
Add table
Reference in a new issue