Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 022998e

Browse files
authored
Amina/invalid_characters_on_barriers_mobile (#6645)
* input type changed * test * linting fix
1 parent 5e46ff0 commit 022998e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/templates/app/trade/trading.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const Trading = () => (
9494
</label>
9595
</div>
9696
<div className='big-col'>
97-
<input id='barrier' type='text' data-lpignore='true' name='H' autoComplete='off' />
97+
<input id='barrier' type='number' step='any' data-lpignore='true' name='H' autoComplete='off' />
9898
<span id='indicative_barrier_tooltip' data-balloon={it.L('This is an indicative barrier. Actual barrier will be the entry spot plus the barrier offset.')} data-balloon-length='xlarge' />
9999
</div>
100100
</div>
@@ -106,7 +106,7 @@ const Trading = () => (
106106
</label>
107107
</div>
108108
<div className='big-col'>
109-
<input id='barrier_high' type='text' data-lpignore='true' name='H' autoComplete='off' />
109+
<input id='barrier_high' type='number' step='any' data-lpignore='true' name='H' autoComplete='off' />
110110
<span id='indicative_high_barrier_tooltip' data-balloon={it.L('This is an indicative barrier. Actual barrier will be the entry spot plus the barrier offset.')} data-balloon-length='xlarge' />
111111
<div className='hint'>
112112
<span id='barrier_high_error' className='error-msg invisible'>{it.L('High barrier must be higher than low barrier')}</span>
@@ -121,7 +121,7 @@ const Trading = () => (
121121
</label>
122122
</div>
123123
<div className='big-col'>
124-
<input id='barrier_low' type='text' data-lpignore='true' name='L' autoComplete='off' />
124+
<input id='barrier_low' type='number' step='any' data-lpignore='true' name='L' autoComplete='off' />
125125
<span id='indicative_low_barrier_tooltip' data-balloon={it.L('This is an indicative barrier. Actual barrier will be the entry spot plus the barrier offset.')} data-balloon-length='xlarge' />
126126
</div>
127127
</div>

0 commit comments

Comments
 (0)