lwc-utils icon indicating copy to clipboard operation
lwc-utils copied to clipboard

SOQL Datatable - Editable picklists fail to render picklist options if Debug Mode is enabled

Open jamessimone opened this issue 3 years ago • 2 comments

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:

unknown

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.

jamessimone avatar Sep 30 '20 00:09 jamessimone

Sounds like an issue to be raised with sf too

justin-lyon avatar Oct 09 '20 03:10 justin-lyon

Tagging this a bug but leaving it as open issue (indefinitely) so readers are aware

tsalb avatar Jan 08 '21 21:01 tsalb