Skip to content

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

Open
@jamessimone

Description

@jamessimone

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions