diff --git a/web/default/src/components/ai-elements/prompt-input.tsx b/web/default/src/components/ai-elements/prompt-input.tsx index 66b73452c5..2859e3810d 100644 --- a/web/default/src/components/ai-elements/prompt-input.tsx +++ b/web/default/src/components/ai-elements/prompt-input.tsx @@ -411,10 +411,8 @@ export const PromptInputActionAddAttachments = ({ return ( { - e.preventDefault() - attachments.openFileDialog() - }} + closeOnClick={false} + onClick={() => attachments.openFileDialog()} > {resolvedLabel} diff --git a/web/default/src/components/data-table/layout/data-table-page.tsx b/web/default/src/components/data-table/layout/data-table-page.tsx index 93f3f5be90..bf92d66c7e 100644 --- a/web/default/src/components/data-table/layout/data-table-page.tsx +++ b/web/default/src/components/data-table/layout/data-table-page.tsx @@ -467,7 +467,7 @@ function renderMobile( aria-busy={props.isLoading || props.isFetching || undefined} className={cn( 'min-h-0 min-w-0 flex-1 overflow-x-hidden overflow-y-auto transition-opacity duration-150', - isFetchingOnly && 'opacity-60' + isFetchingOnly && 'pointer-events-none opacity-60' )} > {mobileContent} @@ -494,7 +494,7 @@ function renderDesktop( className={cn( fixedHeight && 'min-h-0 flex-1 overflow-y-auto', 'transition-opacity duration-150', - isFetchingOnly && 'opacity-60' + isFetchingOnly && 'pointer-events-none opacity-60' )} aria-busy={props.isLoading || props.isFetching || undefined} > @@ -539,7 +539,7 @@ function renderDesktop( containerClassName={cn( fixedHeight && 'min-h-0 flex-1', 'transition-opacity duration-150', - isFetchingOnly && 'opacity-60', + isFetchingOnly && 'pointer-events-none opacity-60', props.tableClassName )} containerProps={{ diff --git a/web/default/src/components/design-system/button.tsx b/web/default/src/components/design-system/button.tsx index 3d3d800749..c6111e8a30 100644 --- a/web/default/src/components/design-system/button.tsx +++ b/web/default/src/components/design-system/button.tsx @@ -50,12 +50,33 @@ type ButtonProps = Omit, 'size'> & { size?: ButtonSize } -function Button({ className, size = 'default', ...props }: ButtonProps) { +// When rendering a non-