Skip to content

Commit

Permalink
fix: re-added placeholder in field password and number (and correspon…
Browse files Browse the repository at this point in the history
…ding test)
  • Loading branch information
Lionel Bijaoui committed Sep 2, 2016
1 parent c645cea commit 79bfee6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fields/fieldNumber.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template lang="jade">
input.form-control(type="number", v-model="value", number, :autocomplete="schema.autocomplete", :disabled="disabled", :max="schema.max", :min="schema.min", :readonly="schema.readonly")
input.form-control(type="number", v-model="value", number, :autocomplete="schema.autocomplete", :disabled="disabled", :max="schema.max", :min="schema.min", :placeholder="schema.placeholder", :readonly="schema.readonly")
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion src/fields/fieldPassword.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template lang="jade">
input.form-control(type="password", v-model="value", :autocomplete="schema.autocomplete", :disabled="disabled", :readonly="schema.readonly")
input.form-control(type="password", v-model="value", :autocomplete="schema.autocomplete", :disabled="disabled", :placeholder="schema.placeholder", :readonly="schema.readonly")
</template>

<script>
Expand Down
1 change: 1 addition & 0 deletions test/unit/specs/fields/fieldNumber.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ describe("fieldNumber.vue", function() {
expect(input).to.be.defined;
expect(input.type).to.be.equal("number");
expect(input.classList.contains("form-control")).to.be.true;
expect(input.placeholder).to.be.equal(schema.placeholder);
expect(input.readOnly).to.be.false;
expect(input.min).to.be.equal("18");
expect(input.max).to.be.equal("100");
Expand Down
1 change: 1 addition & 0 deletions test/unit/specs/fields/fieldPassword.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ describe("fieldPassword.vue", function() {
expect(input).to.be.defined;
expect(input.type).to.be.equal("password");
expect(input.classList.contains("form-control")).to.be.true;
expect(input.placeholder).to.be.equal(schema.placeholder);
expect(input.readOnly).to.be.false;
expect(input.disabled).to.be.false;
});
Expand Down

0 comments on commit 79bfee6

Please sign in to comment.