glib-web 4.35.4 → 4.35.6

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.
@@ -115,12 +115,15 @@ export default {
115
115
  return Object.assign({}, this.spec.footer, { styleClasses });
116
116
  },
117
117
  normalizedOptions() {
118
- return this.spec.options.map(i => {
118
+ return this.spec.options.map((i, index) => {
119
119
  switch (i.type) {
120
120
  case "label":
121
121
  return Object.assign({}, i, {
122
122
  type: 'view',
123
- view: 'label'
123
+ view: 'label',
124
+ // This is only to distinguish the label from an option with the same text
125
+ // in order to force a re-render of the label, i.e. prevent reuse issue.
126
+ value: `label_${index}`
124
127
  });
125
128
  case "view":
126
129
  return i;
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <a v-if="spec.onClick" :href="$href()" :rel="$rel()" :style="$styles()" :class="$classes()" @click="$onClick()">{{
2
+ <a v-if="spec.onClick" :tabindex="spec.disableKeyboardFocus ? -1 : 0" :href="$href()" :rel="$rel()" :style="$styles()" :class="$classes()" @click="$onClick()">{{
3
3
  spec.text }}</a>
4
4
  <span v-else :style="$styles()" :class="$classes()">{{ spec.text }}</span>
5
5
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glib-web",
3
- "version": "4.35.4",
3
+ "version": "4.35.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {