2
0

(date) Add min and max options to date input block

Closes #792
This commit is contained in:
Baptiste Arnaud
2023-09-08 11:38:23 +02:00
parent bea3332c32
commit a2e24d08a0
12 changed files with 163 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@typebot.io/js",
"version": "0.1.24",
"version": "0.1.25",
"description": "Javascript library to display typebots on your website",
"type": "module",
"main": "dist/index.js",

View File

@@ -56,6 +56,8 @@ export const DateForm = (props: Props) => {
from: e.currentTarget.value,
})
}
min={props.options?.min}
max={props.options?.max}
data-testid="from-date"
/>
</div>
@@ -81,6 +83,8 @@ export const DateForm = (props: Props) => {
to: e.currentTarget.value,
})
}
min={props.options?.min}
max={props.options?.max}
data-testid="to-date"
/>
</div>