@asd20/ui 3.2.922 → 3.2.924

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.
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "*.scss",
6
6
  "*.vue"
7
7
  ],
8
- "version": "3.2.922",
8
+ "version": "3.2.924",
9
9
  "private": false,
10
10
  "license": "MIT",
11
11
  "repository": {
@@ -134,11 +134,10 @@ $accent: var(--color__accent);
134
134
  &::before {
135
135
  content: '';
136
136
  position: relative;
137
- left: -0.5rem;
138
137
  display: block;
139
- width: 8px;
140
- height: 8px;
141
- margin-right: space(0.125);
138
+ width: 6px;
139
+ height: 6px;
140
+ margin-right: space(0.25);
142
141
  padding: 0;
143
142
  margin-bottom: 0;
144
143
  line-height: 0;
@@ -12,6 +12,8 @@
12
12
 
13
13
  <Multiselect
14
14
  ref="multiselect"
15
+ autocomplete="off"
16
+ v-fix-autocomplete
15
17
  :value="value"
16
18
  :options="computedItems"
17
19
  :taggable="taggable"
@@ -23,6 +25,16 @@
23
25
  @input="$emit('input', $event)"
24
26
  @tag="addTag"
25
27
  >
28
+ <!-- Override the input using the input slot -->
29
+ <template slot="input" slot-scope="{ search, inputEvents }">
30
+ <input
31
+ :value="search"
32
+ v-on="inputEvents"
33
+ autocomplete="off"
34
+ class="multiselect__input"
35
+ placeholder="Type to search"
36
+ />
37
+ </template>
26
38
  <template slot="tag" slot-scope="{ option, remove }">
27
39
  <span
28
40
  v-if="option"
@@ -98,6 +110,24 @@ export default {
98
110
  selected: '',
99
111
  multiple: 'true',
100
112
  }),
113
+ directives: {
114
+ fixAutocomplete: {
115
+ // Called when the directive is bound to the element
116
+ inserted(el) {
117
+ const input = el.querySelector('input.multiselect__input');
118
+ if (input) {
119
+ input.setAttribute('autocomplete', 'off');
120
+ }
121
+ },
122
+ // Ensure it applies even after updates
123
+ componentUpdated(el) {
124
+ const input = el.querySelector('input.multiselect__input');
125
+ if (input) {
126
+ input.setAttribute('autocomplete', 'off');
127
+ }
128
+ },
129
+ },
130
+ },
101
131
  methods: {
102
132
  addTag(newTag) {
103
133
  const tag = {}
@@ -105,6 +105,7 @@
105
105
  @input="onCategorySelect"
106
106
  :hideLabel="true"
107
107
  placeholder="Filter by Category"
108
+ autocomplete="off"
108
109
  />
109
110
  </div>
110
111
  <div v-if="cards.length < 1">