Make sure title attrs are removed properly - fixes #2676

This commit is contained in:
Stephan Hoyer 2022-01-26 09:57:41 +01:00
parent fce750ab39
commit ab4b21dacc

View file

@ -772,6 +772,7 @@ module.exports = function($window) {
else if ( else if (
hasPropertyKey(vnode, key, ns) hasPropertyKey(vnode, key, ns)
&& key !== "className" && key !== "className"
&& key !== "title" // creates "null" as title
&& !(key === "value" && ( && !(key === "value" && (
vnode.tag === "option" vnode.tag === "option"
|| vnode.tag === "select" && vnode.dom.selectedIndex === -1 && vnode.dom === activeElement() || vnode.tag === "select" && vnode.dom.selectedIndex === -1 && vnode.dom === activeElement()