Skip to content

UpdatingElement sets a remove attribute as 'null' for string properties #76

Closed

Description

@jsantell

This seems unexpected, should investigate more, but a string property is reflected as undefined on initialization (e.g. for attribute 'foo', this.foo is undefined). After setting the property, and subsequently removing (removeAttribute('foo')), the reflected value is now stringified null, e.g. this.foo === 'null'.

This is unexpected reflection for representing the same state: an element that does not have the attribute in question.

Activity

  1. jsantell commented on Nov 6, 2018

    @jsantell
    ContributorAuthor
  2. cdata commented on Jan 28, 2019

    @cdata
    Contributor

    Quick update: looks like this was fixed in December via lit/lit-element#369 and released in v0.7.0 of lit-element

  3. self-assigned this
    on Mar 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arc: compatibilitytype: bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions