Open erdemkeren opened 1 month ago
EditableProTable timeRange value resets after selecting both values and clicking Ok button
Selected time are not removed
import React from "react"; import { EditableProTable } from "@ant-design/pro-components"; export default function App() { const [dataSource, setDataSource] = React.useState([]); const columns = [ { key: "times", dataIndex: "times", valueType: "timeRange", fieldProps: { changeOnBlur: true, format: "HH:mm", minuteStep: 15, order: false, }, formItemProps: { rules: [ { required: true, message: "Required", }, ], }, }, ]; return ( <> {JSON.stringify(dataSource)} <EditableProTable rowKey="id" value={dataSource} dataSource={dataSource} onChange={setDataSource} columns={columns} recordCreatorProps={{ position: "bottom", newRecordType: "dataSource", record: { id: 1, times: [], }, }} /> </> ); }
My code was working before. I guess this occurred after an update.
π bug ζθΏ°
EditableProTable timeRange value resets after selecting both values and clicking Ok button
π· ε€η°ζ₯ιͺ€
π ζζη»ζ
Selected time are not removed
π» ε€η°δ»£η
Β© ηζ¬δΏ‘ζ―
π ε Άδ»δΏ‘ζ―
My code was working before. I guess this occurred after an update.