Exporting layer in PNG formate

Hello Team ,

After a new update I am unable to export the layer as it’s shown in the canvas only . I m able to export the layer in PNG formate but it exports everything in the layer outside the canvas. Which was not the case earlier and it was very convenient too. Now it exports everything in the layer outside the canvas too which is brings unwanted things to the file . Is there any way to solve this? Please help!