mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 01:56:27 +08:00
fix: uniform workspace name length limit, fixed #810
This commit is contained in:
@@ -38,8 +38,9 @@ export const Input = (props: inputProps) => {
|
||||
if (
|
||||
(maxLength && e.target.value.length > maxLength) ||
|
||||
(minLength && e.target.value.length < minLength)
|
||||
)
|
||||
) {
|
||||
return;
|
||||
}
|
||||
setValue(e.target.value);
|
||||
onChange && onChange(e.target.value);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user