mirror of https://github.com/buster-so/buster.git
disabled props
This commit is contained in:
parent
3f8a733def
commit
cfb11855cf
|
@ -125,6 +125,7 @@ export const BusterChatInputBase: React.FC<BusterChatInputProps> = React.memo(
|
|||
onPressEnter={onSubmitPreflight}
|
||||
mentions={mentions}
|
||||
suggestionItems={suggestionItems}
|
||||
disabled={disabled}
|
||||
placeholder="Ask a question or type ‘/’ for shortcuts..."
|
||||
ref={mentionInputSuggestionsRef}
|
||||
inputContainerClassName="px-5 pt-4"
|
||||
|
|
|
@ -22,12 +22,14 @@ export const MentionInputSuggestionsMentionsInput = forwardRef<
|
|||
MentionInputSuggestionsMentionsInputProps
|
||||
>(({ mentions, ...props }, ref) => {
|
||||
const { value } = props;
|
||||
|
||||
return (
|
||||
<React.Fragment>
|
||||
<MentionInput ref={ref} mentions={mentions} {...props} />
|
||||
<Command.Input
|
||||
value={value}
|
||||
autoFocus={false}
|
||||
disabled={props.disabled}
|
||||
className="sr-only hidden h-0 border-0 p-0 pointer-events-none w-full"
|
||||
// className="absolute -top-1 left-0 w-full h-full border border-red-500"
|
||||
aria-hidden="true"
|
||||
|
|
Loading…
Reference in New Issue