microsoft / powercat-creator-kit

This toolkit helps create well-designed Power App experiences on the web & mobile. It contains a component library; PCF controls and other utilities that increase developer productivity.
MIT License
312 stars 51 forks source link

[BUG]: Dialog OnButtonSelect property expecting record value #498

Open packman83 opened 3 days ago

packman83 commented 3 days ago

Describe the bug The OnButtonSelect property of the Dialog component no longer accepts IF statements or UpdateContext to be used. An error occurs that the property is expecting a record value.

To Reproduce Steps to reproduce the behavior:

  1. Add Dialog component to canvas
  2. Configure OnButtonSelect property with the following code per the documentation If( Self.SelectedButton.Label = "Close", Notify("Email Sent") ); UpdateContext({ showHideDialog: false })
  3. Error displayed for 'Expected Record Value'

Expected behavior Configuring a Dialog OnButtonSelect property with IF statements and/or UpdateContext should work successfully

Screenshots image