Commit f13162dda2d55b451dcb1acc669c388c33c258dc
Committed by
GitHub
Merge pull request #1690 from SergioCrisostomo/fix-#1687
Use textContent to not escape html entities in Select options
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
src/components/select/select.vue
... | ... | @@ -291,7 +291,7 @@ |
291 | 291 | this.findChild((child) => { |
292 | 292 | options.push({ |
293 | 293 | value: child.value, |
294 | - label: (child.label === undefined) ? child.$el.innerHTML : child.label | |
294 | + label: (child.label === undefined) ? child.$el.textContent : child.label | |
295 | 295 | }); |
296 | 296 | child.index = index++; |
297 | 297 | ... | ... |
test/unit/specs/select.spec.js