Cover undefined as well
parent
1e1115031d
commit
c25cc9a01c
|
@ -87,7 +87,7 @@ export default {
|
||||||
getSelectedOption() {
|
getSelectedOption() {
|
||||||
let selectedOption;
|
let selectedOption;
|
||||||
|
|
||||||
if (this.value !== null && this.options) {
|
if (this.value != null && this.options) {
|
||||||
for (let option of this.options) {
|
for (let option of this.options) {
|
||||||
if ((ObjectUtils.equals(this.value, this.getOptionValue(option), this.dataKey))) {
|
if ((ObjectUtils.equals(this.value, this.getOptionValue(option), this.dataKey))) {
|
||||||
selectedOption = option;
|
selectedOption = option;
|
||||||
|
@ -104,7 +104,7 @@ export default {
|
||||||
getSelectedOptionIndex() {
|
getSelectedOptionIndex() {
|
||||||
let selectedOptionIndex = -1;
|
let selectedOptionIndex = -1;
|
||||||
|
|
||||||
if (this.value !== null && this.visibleOptions) {
|
if (this.value != null && this.visibleOptions) {
|
||||||
for (let i = 0; i < this.visibleOptions.length; i++) {
|
for (let i = 0; i < this.visibleOptions.length; i++) {
|
||||||
if ((ObjectUtils.equals(this.value, this.getOptionValue(this.visibleOptions[i]), this.dataKey))) {
|
if ((ObjectUtils.equals(this.value, this.getOptionValue(this.visibleOptions[i]), this.dataKey))) {
|
||||||
selectedOptionIndex = i;
|
selectedOptionIndex = i;
|
||||||
|
|
Loading…
Reference in New Issue