Skip to content

Commit 3395169

Browse files
committed
(web admin) fix group'd option tag display
1 parent cf42f19 commit 3395169

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

html/pfappserver/root/static.alt/src/components/pfFormChosen.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,13 @@ export default {
281281
this.inputValue = this.inputValue.filter(input => input !== value)
282282
},
283283
cacheTagsFromOptions (options) {
284+
if (this.groupValues) {
285+
let flattened = []
286+
for (let group of options) {
287+
flattened = [ ...flattened, ...group[this.groupValues] ]
288+
}
289+
options = flattened
290+
}
284291
(options || []).map(option => {
285292
const { [this.trackBy]: value, [this.label]: label } = option
286293
if (!(value in this.tagCache)) {

0 commit comments

Comments
 (0)