The modal freezes when selecting the Finished Item after ticking “Is Subcontracted”

When creating a Subcontracted Purchase Order in ERPNext, I tick the checkbox “Is Subcontracted”. Upon selecting or entering the Finished Item, the item selection modal freezes and does not close. After this, the entire screen becomes unresponsive and cannot proceed or cancel. Any further actions remain stuck on the same screen.

Steps to Replicate the issue:

Go to Purchase Order in ERPNext.

  1. Create a new Purchase Order.

  2. Tick “Is Subcontracted”.

  3. Click on Finished Item selection field.

  4. Select or enter the Finished Item.

  5. The selection modal freezes and does not close.

  6. The screen becomes unresponsive and Cancel does not work.