Skip to content
This repository was archived by the owner on Jul 30, 2018. It is now read-only.
This repository was archived by the owner on Jul 30, 2018. It is now read-only.

WebAnimation down not work on IE11 #912

@economatics

Description

@economatics

There is a bug within WebAnimation. It relates to IE11. On rerender of a widget that includes animation in its render function, WebAnimation fails with a null pointer in its afterRender function. Seen with following animation:

const open: AnimationProperties = {
      id: "open",
      effects: [
        { height: "0px", width: "0px", opacity: "0" },
        { height: `${height}px`, width: `${width}px`, opacity: "1" }
      ],
      controls: {
        play: !this.opened,
        onFinish: this.whenOpened
      },
      timing: {
        duration: 500
      }
    };

    const close: AnimationProperties = {
      id: "close",
      effects: [
        { height: `${height}px`, width: `${width}px`, opacity: "1" },
        { height: "0px", width: "0px", opacity: "0" }
      ],
      controls: {
        play: this.close,
        onFinish: this.whenClosed
      },
      timing: {
        duration: 200
      }
    };

    const animation = this.close ? close : open;
    this.meta(WebAnimation).animate(userMenuKey, animation);

Metadata

Metadata

Assignees

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