mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: apply feedback
This commit is contained in:
parent
d54fab07d0
commit
76596cd472
@ -113,14 +113,14 @@ const ListMessageForm = () => {
|
|||||||
label={t("label.content_limit")}
|
label={t("label.content_limit")}
|
||||||
type="number"
|
type="number"
|
||||||
inputProps={{
|
inputProps={{
|
||||||
maxLength: 25,
|
maxLength: 2,
|
||||||
step: "1",
|
step: 1,
|
||||||
min: 2,
|
min: displayMode === OutgoingMessageFormat.list ? 2 : 1,
|
||||||
max: 4,
|
max: displayMode === OutgoingMessageFormat.list ? 4 : 10,
|
||||||
}}
|
}}
|
||||||
{...register("options.content.limit", {
|
{...register("options.content.limit", {
|
||||||
validate: {
|
validate: {
|
||||||
min: (value) => {
|
limitRange: (value) => {
|
||||||
if (
|
if (
|
||||||
displayMode === OutgoingMessageFormat.list &&
|
displayMode === OutgoingMessageFormat.list &&
|
||||||
(value < 2 || value > 4)
|
(value < 2 || value > 4)
|
||||||
|
Loading…
Reference in New Issue
Block a user