mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-10 07:52:23 +03:00
remove getOptionValue()
This commit is contained in:
@@ -418,21 +418,6 @@
|
||||
return this.value === option
|
||||
},
|
||||
|
||||
/**
|
||||
* If the selected option has option['value'] return it.
|
||||
* Otherwise, return the entire option.
|
||||
* @param {Object||String} option
|
||||
* @return {Object||String}
|
||||
* @deprecated will be removed in 1.0.8
|
||||
*/
|
||||
getOptionValue( option ) {
|
||||
if( typeof option === 'object' && option.value ) {
|
||||
return option.value;
|
||||
}
|
||||
|
||||
return option;
|
||||
},
|
||||
|
||||
/**
|
||||
* Generate the option label text. If {option}
|
||||
* is an object, return option[this.label].
|
||||
|
||||
Reference in New Issue
Block a user