HI Rashmi ,
The standard behavior is when you click on attachment button then a attachment view open there you need to select file that you want to attach . You cannot select any other object or cannot click any button until you select the file and upload the file or you cancel the upload view .
Thanks ,
Rishi verma