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

Property Change not called for ShorthandProperty #7977

Copy link
Copy link
Open
@tgpetrov

Description

@tgpetrov
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):

  • CLI: N/A
  • Cross-platform modules: 6.1.0
  • Android Runtime: N/A
  • iOS Runtime: N/A
  • Plugin(s): N/A

Describe the bug
ShorthandProperty instances can't be listened for changes

To Reproduce

    const label = new Label();
    label.style.on("marginLeftChange", () => console.log('marginLeftChange!'));
    label.style.on("marginChange", () => console.log('marginChange!'));
    label.style.marginLeft = 5;
    label.style.margin = 10;

Expected behavior
I expected the two messages to be console logged. Actually only marginLeftChange was logged.

Additional context

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.