Skip to content

Commit a3d330e

Browse files
committed
🐛 fix: checkbox readonly
1 parent ad2c359 commit a3d330e

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

test/unit/specs/fields/fieldCheckbox.spec.js

+1-11
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ describe("FieldCheckbox.vue", () => {
1919
let schema = {
2020
type: "checkbox",
2121
label: "Status",
22-
model: "status",
23-
readonly: false
22+
model: "status"
2423
};
2524
let model = { status: true };
2625
let input;
@@ -36,7 +35,6 @@ describe("FieldCheckbox.vue", () => {
3635

3736
expect(input).to.be.defined;
3837
expect(input.type).to.be.equal("checkbox");
39-
expect(input.readOnly).to.be.false;
4038
expect(input.disabled).to.be.false;
4139
});
4240

@@ -47,14 +45,6 @@ describe("FieldCheckbox.vue", () => {
4745
});
4846
});
4947

50-
it("should set readOnly", (done) => {
51-
schema.readonly = true;
52-
vm.$nextTick( () => {
53-
expect(input.readOnly).to.be.true;
54-
done();
55-
});
56-
});
57-
5848
it("should set disabled", (done) => {
5949
field.disabled = true;
6050
vm.$nextTick( () => {

0 commit comments

Comments
 (0)