Skip to content

Commit 1776b02

Browse files
authored
Fixed problem when dropdown item contains double quote
Fixed the problem with data-value attribute when the dropdown item contains double quote
1 parent 59f151f commit 1776b02

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/core/components/autocomplete/autocomplete-class.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ class Autocomplete extends Framework7Class {
436436
const ac = this;
437437
if (ac.params.renderItem) return ac.params.renderItem.call(ac, item, index);
438438
let itemHtml;
439+
item.value = item.value.replace(/"/g, '"');
439440
if (ac.params.openIn !== 'dropdown') {
440441
itemHtml = `
441442
<li>

0 commit comments

Comments
 (0)