diff --git a/imports/ui/pages/auctions/currencyAuction.js b/imports/ui/pages/auctions/currencyAuction.js index f3c216a7..3629a03d 100644 --- a/imports/ui/pages/auctions/currencyAuction.js +++ b/imports/ui/pages/auctions/currencyAuction.js @@ -23,6 +23,17 @@ Template.currencyAuction.onCreated(function() { Meteor.setInterval(() => this.now.set(Date.now()), 250) // update the timer every 250ms for smooth drainage }) + + +Template.currencyAuction.onRendered(function(){ + const instance=Template.instance(); + Meteor.setTimeout(()=>{ + instance.$("#js-amount").on("input",function(){ + this.value=this.value.slice(0,this.maxLength); + }); + },10) +}) + Template.currencyAuction.helpers({ currencies: () => { let bids = Bids.find({ diff --git a/imports/ui/pages/auctions/currencyAuction.template.html b/imports/ui/pages/auctions/currencyAuction.template.html index 0987eaad..e0da1b22 100644 --- a/imports/ui/pages/auctions/currencyAuction.template.html +++ b/imports/ui/pages/auctions/currencyAuction.template.html @@ -20,7 +20,8 @@