Refactor functionality to not to remove the required chars
This commit is contained in:
parent
112b842cc4
commit
8c78c2cc5e
5
resources/assets/js/views/common/items.js
vendored
5
resources/assets/js/views/common/items.js
vendored
@ -48,8 +48,9 @@ const app = new Vue({
|
||||
|
||||
for (let item of this.regex_condition) {
|
||||
if (this.form.sale_price.includes(item)) {
|
||||
this.splice_value = this.form.sale_price.replace(item, '');
|
||||
this.form.sale_price = this.splice_value;
|
||||
const removeLastChar = newVal.length - 1
|
||||
const inputShown = newVal.slice(0, removeLastChar)
|
||||
this.form.sale_price = inputShown;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user