disabled props

This commit is contained in:
Nate Kelley 2025-10-01 12:01:27 -06:00
parent 3f8a733def
commit cfb11855cf
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
2 changed files with 3 additions and 0 deletions

View File

@ -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"

View File

@ -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"