Revert attrs.class creation logic to what we had in v1.0.1. fix #1764

This commit is contained in:
Pierre-Yves Gerardy 2017-04-04 12:20:14 +02:00
parent 45afd4117a
commit 98e3cbdc69
2 changed files with 104 additions and 2 deletions

View file

@ -34,8 +34,8 @@ function execSelector(state, attrs, children) {
}
}
if (className != null) {
if (attrs.class != null) {
if (className !== undefined) {
if (attrs.class !== undefined) {
attrs.class = undefined
attrs.className = className
}