upd: validasi form create dan update pengajuan surat
Deskripsi: - deselect false pada input select form tambah dan update pengajuan surat No Issues
This commit is contained in:
@@ -324,6 +324,7 @@ export default function FormSurat() {
|
|||||||
<Grid>
|
<Grid>
|
||||||
<Grid.Col span={12}>
|
<Grid.Col span={12}>
|
||||||
<Select
|
<Select
|
||||||
|
allowDeselect={false}
|
||||||
label={
|
label={
|
||||||
<FieldLabel
|
<FieldLabel
|
||||||
label="Jenis Surat"
|
label="Jenis Surat"
|
||||||
@@ -396,6 +397,7 @@ export default function FormSurat() {
|
|||||||
<Grid.Col span={6} key={index}>
|
<Grid.Col span={6} key={index}>
|
||||||
{item.type == "enum" ? (
|
{item.type == "enum" ? (
|
||||||
<Select
|
<Select
|
||||||
|
allowDeselect={false}
|
||||||
label={
|
label={
|
||||||
<FieldLabel
|
<FieldLabel
|
||||||
label={item.name}
|
label={item.name}
|
||||||
@@ -430,8 +432,8 @@ export default function FormSurat() {
|
|||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
const formatted = e
|
const formatted = e
|
||||||
? dayjs(e)
|
? dayjs(e)
|
||||||
.locale("id")
|
.locale("id")
|
||||||
.format("DD MMMM YYYY")
|
.format("DD MMMM YYYY")
|
||||||
: "";
|
: "";
|
||||||
validationForm({
|
validationForm({
|
||||||
key: "dataPelengkap",
|
key: "dataPelengkap",
|
||||||
|
|||||||
@@ -625,6 +625,7 @@ function DataUpdate({
|
|||||||
<Grid.Col span={6} key={index}>
|
<Grid.Col span={6} key={index}>
|
||||||
{item.type == "enum" ? (
|
{item.type == "enum" ? (
|
||||||
<Select
|
<Select
|
||||||
|
allowDeselect={false}
|
||||||
label={<FieldLabel label={item.name} hint={item.desc} />}
|
label={<FieldLabel label={item.name} hint={item.desc} />}
|
||||||
data={item.options ?? []}
|
data={item.options ?? []}
|
||||||
placeholder={item.name}
|
placeholder={item.name}
|
||||||
|
|||||||
Reference in New Issue
Block a user