File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,7 @@ class Finput {
155
155
const handlerForAction = {
156
156
[ ACTION_TYPES . NUMBER ] : keyHandlers . onNumber ,
157
157
[ ACTION_TYPES . DECIMAL ] : keyHandlers . onDecimal ,
158
+ [ ACTION_TYPES . THOUSANDS ] : keyHandlers . onThousands ,
158
159
[ ACTION_TYPES . MINUS ] : keyHandlers . onMinus ,
159
160
[ ACTION_TYPES . SHORTCUT ] : keyHandlers . onShortcut ,
160
161
[ ACTION_TYPES . BACKSPACE ] : keyHandlers . onBackspace ,
Original file line number Diff line number Diff line change @@ -98,6 +98,16 @@ module.exports = {
98
98
return newState ;
99
99
} ,
100
100
101
+ /**
102
+ * THOUSANDS HANDLER
103
+ * @param {currentState } Information about current finput state
104
+ */
105
+ onThousands : function ( currentState , keyInfo , options ) {
106
+ const newState = { ...currentState } ;
107
+ newState . valid = false ;
108
+ return newState ;
109
+ } ,
110
+
101
111
/**
102
112
* SHORTCUT HANDLER
103
113
* @param {currentState } Information about current finput state
You can’t perform that action at this time.
0 commit comments