Skip to content

Race condition for binding of properties for backend selectors #2149

Description

@djkunkel

We've noticed on projects occasionally when opening a backend editor, selectors are at default values even if values are present for them.

When implementing this tutorial to add a custom taxonomy selector:
http://docs.sitefinity.com/feather-hierarchical-taxon-selector
I noticed that sometimes my editor would be set to Categories which is the default for sf-taxonomy-selector. I believe that occasionally binding finishes before the data for properties is loaded, and thus the defaults. On other built-in widgets this manifests as an empty selector which can cause users to erase their previous selections accidentally.

I worked around using al-if to guard binding of my widget view until data is loaded. Because al-if creates a child scope, I had to create a $scope.model object to store the values I wanted to access from inside the al-if'ed elements that needed special processing (JSON parsing in my example).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions