Skip to content

Styles missing in print dialog #382

@lohiaumang

Description

@lohiaumang

Hi,

I have a component that looks like this -

Screenshot 2021-06-05 at 7 50 49 PM

But when I print this, I get this in the print dialog -

Screenshot 2021-06-05 at 7 51 30 PM

I am using bootstrap grid with react (which uses flexbox). I am using the library like this -

const deliveryOrderTableRef =
    useRef() as React.MutableRefObject<HTMLDivElement>;
const printPage = useReactToPrint({
    content: () => deliveryOrderTableRef.current,
    copyStyles: true,
});

<div className="delivery-order-table" ref={ref}>

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions