LWC Quick Action Support

Issue #1924 resolved
Paul Kissick created an issue

The new LWC Quick Action features are identified as errors by IC. See https://developer.salesforce.com/blogs/2021/05/learn-moar-with-summer-21-lwc-quick-actions.html for details on the feature.

I’m seeing errors in the LWC metadata file where I wrote:

<targetConfig targets="lightning__RecordAction">
<actionType>ScreenAction</actionType>
</targetConfig>

This is valid, but the <actionType> tag is marked as not allowed here by IC.

There is also an error when importing the lightning/actions module for CloseActionScreenEvent.

import { CloseActionScreenEvent } from 'lightning/actions';

Finally, the documentation for the lightning-quick-action-panel component is incorrect, claiming that the title attribute is used to set the title of the modal. This should be header, not title. (found in the /components/lightning/quickActionPanel.js file).

Comments (9)

  1. Scott Wells repo owner

    Paul, I've already committed fixes for the first two. Can you please provide a concrete reference to lightning-quick-action-panel > header? As you pointed out, all published documentation that I've found specifies title.

  2. Paul Kissick reporter

    Hi Scott, I don’t have any documentation to back this up. The LWC docs aren’t available for v52 yet either.

    All I know is that title doesn’t work, and header is mentioned in the source code for the lightning-quick-action-panel component, and that works on components I’ve written.

    Paul

  3. Scott Wells repo owner

    Okay. I've added header in addition to title so that it'll work in code completion and validation. I'm not removing title, though, until I see authoritative documentation that it's incorrect. This will all be in the next build, likely for Thursday morning release.

  4. Scott Wells repo owner

    Yeah, that's a good lead. It's always fun catching up after a seasonal platform release with the things that aren't documented (properly) in the release notes or even updated docs but rather as part of tribal knowledge. Thanks for the info!

  5. Scott Wells repo owner

    Ah, perfect! Thanks for the update, Paul. I'll remove title altogether for tomorrow morning's build.

  6. Log in to comment