Blog, Development

PCF: Solving issue with lookupObjects and modal dialogs layering

During my few last project I had to implement the same pattern:

  • PCF control opens the Modal dialog
  • Dialog has controls that use OOB lookupObjects function to enter the data

Challenge – the panel that pops up when lookupObjects is executed is located under the initiating Dialog:

In order to fix this issue it would be required to update modalProps property of Dialog:

Once that update is applied, the lookup dialog will appear on top of our custom dialog. Here is an example of the component I used:

Cover photo by Scott Graham on Unsplash

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.