Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Switch with offBackgroundColor throws 'getTrackDrawable' of undefined #2134

Copy link
Copy link
@csimpi

Description

@csimpi
Issue body actions

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
√ Component nativescript has 6.5.0 version and is up to date.
√ Component tns-core-modules has 6.5.0 version and is up to date.
√ Component tns-android has 6.5.0 version and is up to date.
× Component tns-ios is not installed.

  • Angular: 8.1

Describe the bug

When I use Switch with offBackgroundColor it throws TypeError: Cannot read property 'getTrackDrawable' of undefined error message.

<Switch [(ngModel)]="checklistFilters.visited" color="#b3e6f9" backgroundColor="#000000" offBackgroundColor="#444444" padding="0" margin="0" ></Switch>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.