JS load issue in erpnext

I have created a custom item filter category wise on sales order page for item selection. But we are facing issue refresh page. Suppose I moving PO to SO page then filter is not working but after refresh page it is working.

Hello @vaibhavk1985, please add some context like code and/or screen shots