@symfony/ux-autocomplete 3.0.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -275,8 +275,8 @@ function _createAutocompleteWithRemoteData(autocompleteEndpointUrl, minCharacter
275
275
  optgroupField: "group_by",
276
276
  score: (_search) => (_item) => 1,
277
277
  render: {
278
- option: (item) => `<div>${item[labelField]}</div>`,
279
- item: (item) => `<div>${item[labelField]}</div>`,
278
+ option: (item, escape) => `<div>${this.optionsAsHtmlValue ? item[labelField] : escape(item[labelField])}</div>`,
279
+ item: (item, escape) => `<div>${this.optionsAsHtmlValue ? item[labelField] : escape(item[labelField])}</div>`,
280
280
  loading_more: () => {
281
281
  return `<div class="loading-more-results">${this.loadingMoreTextValue}</div>`;
282
282
  },
package/package.json CHANGED
@@ -2,12 +2,15 @@
2
2
  "name": "@symfony/ux-autocomplete",
3
3
  "description": "JavaScript Autocomplete functionality for Symfony",
4
4
  "license": "MIT",
5
- "version": "3.0.0",
5
+ "version": "3.2.0",
6
6
  "keywords": [
7
7
  "symfony-ux"
8
8
  ],
9
9
  "homepage": "https://ux.symfony.com/autocomplete",
10
- "repository": "https://github.com/symfony/ux",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/symfony/ux"
13
+ },
11
14
  "type": "module",
12
15
  "files": [
13
16
  "dist"