File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
resources/views/components Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to ` laravel-simple-select ` will be documented in this file
4
4
5
+ ## v1.2.5 - 2021-11-21
6
+
7
+ - Fixed bugs in usage of integer as field value.
8
+
9
+ ## v1.2.4 - 2021-11-12
10
+
11
+ - Added default value for ` id ` prop.
12
+
5
13
## v1.2.3 - 2021-08-11
6
14
7
15
- ` customSelected ` Slot Bug fix.
Original file line number Diff line number Diff line change @@ -150,9 +150,9 @@ function SimpleSelect(config) {
150
150
let valueField = this .valueField ;
151
151
return Object .values (this .dataSource ).findIndex (function (x ) {
152
152
if (typeof x === ' object' ) {
153
- return x[valueField] === value;
153
+ return x[valueField] == value;
154
154
} else {
155
- return x === value;
155
+ return x == value;
156
156
}
157
157
});
158
158
},
@@ -162,9 +162,9 @@ function SimpleSelect(config) {
162
162
let valueField = this .valueField ;
163
163
let foundValue = Object .values (this .dataSource ).find (function (x ) {
164
164
if (typeof x === ' object' ) {
165
- return x[valueField] === value;
165
+ return x[valueField] == value;
166
166
} else {
167
- return x === value;
167
+ return x == value;
168
168
}
169
169
});
170
170
return typeof foundValue === ' object' && this .dataSource [index] ? this .dataSource [index][this .textField ] : foundValue;
@@ -175,9 +175,9 @@ function SimpleSelect(config) {
175
175
let valueField = this .valueField ;
176
176
let foundValue = Object .values (this .dataSource ).find (function (x ) {
177
177
if (typeof x === ' object' ) {
178
- return x[valueField] === value;
178
+ return x[valueField] == value;
179
179
} else {
180
- return x === value;
180
+ return x == value;
181
181
}
182
182
});
183
183
return foundValue ?? value;
You can’t perform that action at this time.
0 commit comments