lwc-utils
lwc-utils copied to clipboard
SOQL Datatable - Editable picklists fail to render picklist options if Debug Mode is enabled
Problem
There appears to be a difference in lifecycle rendering methods when Debug Mode is enabled for Lightning Components that leaves <c-picklist>
without the value for fieldDescribe
handed down from datatablePicklistCell
via datatableEditableCell
. If Debug Mode is off, the value is correctly handed down from parent to child and the picklist editable cell renders as expected. In Debug Mode, an error is silently raised (which can only be viewed by adding a constructor and debugger
statement in picklist.js
....) alerting you that fieldDescribe
is trying to be assigned without the value having been set in the parent yet:

Proposed Solution
Since the issue only affects people in Debug Mode, let's just update the readme to let people know that this is expected behavior while debugging, and doesn't affect the production-level component.
Sounds like an issue to be raised with sf too
Tagging this a bug but leaving it as open issue (indefinitely) so readers are aware