Skip to content

Commit

Permalink
chore: added disabled property to Query Item Cascader
Browse files Browse the repository at this point in the history
  • Loading branch information
nrmerlis committed Aug 5, 2024
1 parent 29cc614 commit fa0c1b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/data-entry/QueryItem/Cascader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export interface IQueryItemCascaderProps {
onChange?: (values: Array<number | string>, selectedOptions: any) => Promise<void>
loadData?: (value: string) => void
value?: Array<number | string>
disabled?: boolean
}

const Cascader = (props: IQueryItemCascaderProps) => {
Expand Down Expand Up @@ -129,6 +130,7 @@ const Cascader = (props: IQueryItemCascaderProps) => {
<>
<BaseCascader {...baseProps}>
<Input
disabled={props.disabled}
readOnly
placeholder={props.placeholder}
status={props.errorMessage ? 'error' : undefined}
Expand Down

0 comments on commit fa0c1b9

Please sign in to comment.