Skip to content
This repository was archived by the owner on Feb 18, 2024. It is now read-only.

Commit 04da955

Browse files
committed
Fix initial value
1 parent 5e22dda commit 04da955

File tree

6 files changed

+21
-22
lines changed

6 files changed

+21
-22
lines changed

dist/laravel-ui.min.js

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/laravel-ui.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10560,17 +10560,16 @@
1056010560
type: String,
1056110561
required: true
1056210562
},
10563-
value: {
10564-
type: String,
10565-
default: ''
10563+
initialValue: {
10564+
type: String
1056610565
}
1056710566
},
1056810567
render: function render(createElement) {
1056910568
var component = this;
1057010569
return createElement('input', {
1057110570
domProps: {
10572-
type: component.tag,
10573-
value: component.value
10571+
type: this.tag,
10572+
value: this.initialValue || component.value
1057410573
},
1057510574
on: {
1057610575
input: function input(event) {
@@ -10793,7 +10792,8 @@
1079310792
* Value
1079410793
*/
1079510794
value: {
10796-
default: null
10795+
default: null,
10796+
required: true
1079710797
},
1079810798
/**
1079910799
* Default value
@@ -11760,7 +11760,7 @@
1176011760
staticClass: "placeholder"
1176111761
}, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")]) : _vm._e(), (_vm.loading) ? _c('ui-loading') : _vm._e(), _c('v-input', {
1176211762
attrs: {
11763-
"value": _vm.value,
11763+
"initial-value": _vm.value,
1176411764
"name": _vm.name,
1176511765
"tag": _vm.type,
1176611766
"disabled": _vm.disabled

docs/laravel-ui.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/DynamicInput.vue

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,17 @@
55
type: String,
66
required: true
77
},
8-
value: {
9-
type: String,
10-
default: ''
8+
initialValue: {
9+
type: String
1110
}
1211
},
1312
render: function(createElement) {
1413
let component = this;
1514
return createElement('input',
1615
{
1716
domProps: {
18-
type: component.tag,
19-
value: component.value
17+
type: this.tag,
18+
value: this.initialValue || component.value
2019
},
2120
on: {
2221
input: function(event) {

src/components/Text.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134

135135
<ui-loading v-if="loading"></ui-loading>
136136

137-
<v-input v-model="internalValue" :value="value" @input="onInput" @blur="onBlur" @focus="onFocus"
137+
<v-input v-model="internalValue" :initial-value="value" @input="onInput" @blur="onBlur" @focus="onFocus"
138138
:name="name"
139139
:tag="type"
140140
:disabled="disabled"></v-input>

0 commit comments

Comments
 (0)