haya-select 1.0.3 → 1.0.4
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 +1 -1
- package/src/select/index.jsx +0 -4
package/package.json
CHANGED
package/src/select/index.jsx
CHANGED
|
@@ -172,15 +172,11 @@ export default class CustomSelect extends React.PureComponent {
|
|
|
172
172
|
defaultValues () {
|
|
173
173
|
const {attribute, defaultValuesFromOptions, model} = this.props
|
|
174
174
|
|
|
175
|
-
console.log("defaultValues")
|
|
176
|
-
|
|
177
175
|
if (defaultValuesFromOptions) return defaultValuesFromOptions
|
|
178
176
|
|
|
179
177
|
if (attribute && model) {
|
|
180
178
|
if (!(attribute in model)) throw new Error(`No such attribute on ${model.modelClassData().name}: ${attribute}`)
|
|
181
179
|
|
|
182
|
-
console.log(`Default value from ${attribute}: ${model[attribute]()}`)
|
|
183
|
-
|
|
184
180
|
return model[attribute]()
|
|
185
181
|
}
|
|
186
182
|
}
|