feat: enhance image components with draggable attribute and context menu handling
This commit is contained in:
@@ -4,6 +4,12 @@ import * as css from './media.css';
|
||||
|
||||
export const Image = forwardRef<HTMLImageElement, ImgHTMLAttributes<HTMLImageElement>>(
|
||||
({ className, alt, ...props }, ref) => (
|
||||
<img className={classNames(css.Image, className)} alt={alt} {...props} ref={ref} />
|
||||
<img
|
||||
className={classNames(css.Image, className)}
|
||||
alt={alt}
|
||||
draggable={false}
|
||||
{...props}
|
||||
ref={ref}
|
||||
/>
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user