From 7326b93e13835a8bf975e68cd827084def11f9da Mon Sep 17 00:00:00 2001 From: Vit Stanislav Date: Fri, 28 Apr 2017 16:08:17 +0200 Subject: [PATCH 1/2] Make sure that send dialog shows decimal point, not comma For more info checkout: http://www.wmyl.se/en/blog/comma-dot-input-typenumber-mess/ --- src/app/components/send/send.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/send/send.pug b/src/app/components/send/send.pug index 428da05fc..9f04c12fd 100644 --- a/src/app/components/send/send.pug +++ b/src/app/components/send/send.pug @@ -21,7 +21,7 @@ md-card.offline-hide div(ng-message='pattern') Invalid md-input-container.md-block label Transaction Amount - input(type='number', name='amount', ng-model='$ctrl.amount.value', required, ng-pattern='$ctrl.amount.regexp', ng-disabled='$ctrl.loading', ng-max='$ctrl.amount.max', ignore-mouse-wheel) + input(type='text', name='amount', ng-model='$ctrl.amount.value', required, ng-pattern='$ctrl.amount.regexp', ng-disabled='$ctrl.loading', ng-max='$ctrl.amount.max', ignore-mouse-wheel) div.fee(ng-show='$ctrl.amount.value') Fee: 0.1 LSK div(ng-messages='$ctrl.sendForm.amount.$error') div(ng-message='required') Required From ea9b7f29855c70f0204d0c34ea01b6cfb788ebab Mon Sep 17 00:00:00 2001 From: Vit Stanislav Date: Fri, 28 Apr 2017 16:12:03 +0200 Subject: [PATCH 2/2] Remove ignoreMouseWheel directive since we no longer use input(type='number') --- src/app/components/send/send.js | 7 ------- src/app/components/send/send.pug | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/app/components/send/send.js b/src/app/components/send/send.js index b2c35edb2..2606e2fc0 100644 --- a/src/app/components/send/send.js +++ b/src/app/components/send/send.js @@ -113,10 +113,3 @@ app.component('send', { } }, }); - -app.directive('ignoreMouseWheel', () => ({ - restrict: 'A', - link: (scope, element) => { - element.bind('mousewheel', () => element.blur()); - }, -})); diff --git a/src/app/components/send/send.pug b/src/app/components/send/send.pug index 9f04c12fd..b80ce60f6 100644 --- a/src/app/components/send/send.pug +++ b/src/app/components/send/send.pug @@ -21,7 +21,7 @@ md-card.offline-hide div(ng-message='pattern') Invalid md-input-container.md-block label Transaction Amount - input(type='text', name='amount', ng-model='$ctrl.amount.value', required, ng-pattern='$ctrl.amount.regexp', ng-disabled='$ctrl.loading', ng-max='$ctrl.amount.max', ignore-mouse-wheel) + input(type='text', name='amount', ng-model='$ctrl.amount.value', required, ng-pattern='$ctrl.amount.regexp', ng-disabled='$ctrl.loading', ng-max='$ctrl.amount.max') div.fee(ng-show='$ctrl.amount.value') Fee: 0.1 LSK div(ng-messages='$ctrl.sendForm.amount.$error') div(ng-message='required') Required