Skip to content

Commit

Permalink
fixes #2629
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcegr authored Oct 17, 2018
1 parent f924867 commit 3925b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/browser/tag/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export function updateExpression(expr) {
}

// remove original attribute
if (expr.attr && (!expr.wasParsedOnce || !hasValue || value === false)) {
if (expr.attr && (!expr.wasParsedOnce || (!hasValue && dom.tagName !=='OPTION') || value === false)) {
// remove either riot-* attributes or just the attribute name
removeAttribute(dom, getAttribute(dom, expr.attr) ? expr.attr : attrName)
}
Expand Down

0 comments on commit 3925b65

Please sign in to comment.