Skip to content

Commit

Permalink
fix(ui): prompt regression
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed May 11, 2018
1 parent 16f3137 commit 81a5afb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/@vue/cli-ui/src/components/Prompt.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
methods: {
value (value) {
if (typeof this.modifiedValue !== 'undefined') return this.modifiedValue
if (this.$options.buffer && typeof this.modifiedValue !== 'undefined') return this.modifiedValue
return JSON.parse(value)
},
Expand Down
4 changes: 3 additions & 1 deletion packages/@vue/cli-ui/src/components/PromptColor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ export default {
components: {
ColorPicker: Sketch
}
},
buffer: true
}
</script>

Expand Down
4 changes: 3 additions & 1 deletion packages/@vue/cli-ui/src/components/PromptInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
import Prompt from './Prompt'
export default {
extends: Prompt
extends: Prompt,
buffer: true
}
</script>

0 comments on commit 81a5afb

Please sign in to comment.