Skip to content

Computed value should check data type #241

@patric-eberle

Description

@patric-eberle

I'm currently figuring out why I still get the error from #195 with the latest version in my implementation. Beside that I noticed some critical data handling in the computed properties of basic-dialog.js:

this.get('containerClassNames').join(' '),

The marked line gets the containerClassNames data and executes join() without type testing. This is meant to crash, since the default is already null, the computed is listening to other properties as well and invalid data could also be given from outside. Note, that there are multiple places in this file, where the same issue occurs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions