LWC Quick Action Support
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)
-
repo owner -
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 specifiestitle
. -
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
-
repo owner Okay. I've added
header
in addition totitle
so that it'll work in code completion and validation. I'm not removingtitle
, though, until I see authoritative documentation that it's incorrect. This will all be in the next build, likely for Thursday morning release. -
reporter Thanks Scott.
Whilst not conclusive proof, someone else has recognised this title/header issue on stackexchange.
-
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!
-
reporter Hi Scott, I’ve just checked and the docs have been updated for the summer release (finally):
This shows header as an attribute.
It’s also in the dev guide: https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.use_quick_actions_screen
Paul
-
repo owner Ah, perfect! Thanks for the update, Paul. I'll remove
title
altogether for tomorrow morning's build. -
repo owner - changed status to resolved
Delivered in 2.1.8.2.
- Log in to comment
Thanks for logging. I'll take care of it for the next build.