Skip to content

Custom attribute primary property same name as attribute #716

@plarner30

Description

@plarner30

I'm submitting a bug report
Windows 10
Chrome 85.0.4183.102

Current behaviour
If you name the primary property of a custom attribute the same as the attribute its is not possible to access the initial or changed value.

What is the expected behavior?
The value should update when the primary property name is the same as the attribute and have the correct initial value.

@customAttribute('permission')
@autoinject
export class PermissionCustomAttribute {
  @bindable({ primaryProperty: true }) permission: string= '';
   permissionChanged(newPermission: string) {
    console.log(newPermission);
  }
}
<div permission.bind="'test'"></div>

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