Use textContent to not escape html entities in Select options
This commit is contained in:
parent
976354a2c0
commit
a9e0f79d89
2 changed files with 2 additions and 2 deletions
|
@ -291,7 +291,7 @@
|
|||
this.findChild((child) => {
|
||||
options.push({
|
||||
value: child.value,
|
||||
label: (child.label === undefined) ? child.$el.innerHTML : child.label
|
||||
label: (child.label === undefined) ? child.$el.textContent : child.label
|
||||
});
|
||||
child.index = index++;
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ describe('Select.vue', () => {
|
|||
});
|
||||
});
|
||||
|
||||
xit('should accept normal characters', done => {
|
||||
it('should accept normal characters', done => {
|
||||
vm = createVue({
|
||||
template: `
|
||||
<Select :value="2">
|
||||
|
|
Loading…
Add table
Reference in a new issue