Skip to content

Commit 061d367

Browse files
committed
add logic to not change mask if message <= max
1 parent 422a357 commit 061d367

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dist/js/field.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
788788

789789
methods: {
790790
toggle: function toggle() {
791+
if (this.text.length <= this.max) return;
791792
this.showAll = !this.showAll;
792793
}
793794
}

resources/js/components/ReadMore.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
5959
methods: {
6060
toggle() {
61+
if(this.text.length <= this.max) return
6162
this.showAll = !this.showAll
6263
}
6364
}

0 commit comments

Comments
 (0)