Use textContent to not escape html entities in Select options

This commit is contained in:
Sergio Crisostomo 2017-09-01 09:11:09 +02:00
parent 976354a2c0
commit a9e0f79d89
2 changed files with 2 additions and 2 deletions

View file

@ -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++;

View file

@ -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">