Skip to content

transition before-leave js-hook does not manipulate the DOM which will be transitioned #9573

Open
@plehnen

Description

@plehnen

Version

2.6.7

Reproduction link

https://jsfiddle.net/8zcdpkv0/

Steps to reproduce

Please see jsfiddle.

Any changes in the before-leave hook won't affect the DOM which is transitioned.

My actual problem is that I try to transition an element which has aria-live="polite" or rule="alert", which will be read out by a screenreader.
Apparently the change of classes from the transition are noticed by the screenreader and the message will be read out again.
I tried to fix this for accessibility purposes with the before-leave hook, but that doesn't seem to work correctly.

What is expected?

It would either be great if the transitioned DOM will remove all attributes which will cause the screenreader to read it out again, or to allow the javascript hook "before-leave" to actually change the DOM before the transition happens.

What is actually happening?

The old DOM will be transitioned (and the screenreader will read the content again).

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