Skip to content

Why "before" and "after" attributes are discarded? #6408

Discussion options

You must be logged in to vote

before and after are now available on Element.prototype so Vue will try to set the corresponding property instead of setAttribute. You can now work around this by using ^before and ^after to force setAttribute. To prevent potential conflicts with DOM API, you should use attributes like data-before or data-after.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by varmiral
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants