mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 23:16:58 +00:00
change input type to 'text'
Changing input type to text removes the "spinner" controls from within the text box. The spinner buttons are an accessibility issue (the tiny buttons are tiny), and we already have better buttons for incrementing/decrementing page number. Text box only accepts numbers.
This commit is contained in:
1 parent
a42b867bcb
commit
176977dd2a
1 file changed
+3
-3
@@ -78,10 +78,10 @@ const ToolBar = ({ onZoomChange, currentPage, onPageChange, totalPages })=>{
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<input
|
<input
|
||||||
type='number'
|
type='text'
|
||||||
name='page'
|
name='page'
|
||||||
min={1}
|
inputMode='numeric'
|
||||||
max={state.totalPages}
|
pattern='[0-9]'
|
||||||
id='pageInput'
|
id='pageInput'
|
||||||
value={pageInput}
|
value={pageInput}
|
||||||
onChange={(e)=>{
|
onChange={(e)=>{
|
||||||
|
|||||||
Reference in new issue
Block a user