Skip to content

Commit

Permalink
fix(Select): remove colon from menu-props suggestion with booleans only
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD committed Nov 22, 2018
1 parent 862d593 commit 9cc06fd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/vuetify/src/components/VSelect/VSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,10 +448,16 @@ export default {
if (onlyBools) {
replacement = Object.keys(replacement).join(', ')
} else {
replacement = JSON.stringify(replacement, null, multiple ? 2 : 0).replace(/"([^(")"]+)":/g, '$1:').replace(/"/g, '\'')
replacement = JSON.stringify(replacement, null, multiple ? 2 : 0)
.replace(/"([^(")"]+)":/g, '$1:')
.replace(/"/g, '\'')
}

consoleWarn(`${props} ${multiple ? 'are' : 'is'} deprecated, use ${separator}:menu-props="${replacement}"${separator} instead`, this)
consoleWarn(
`${props} ${multiple ? 'are' : 'is'} deprecated, use ` +
`${separator}${onlyBools ? '' : ':'}menu-props="${replacement}"${separator} instead`,
this
)
}
}

Expand Down

0 comments on commit 9cc06fd

Please sign in to comment.