mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-28 13:32:39 +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:
@@ -78,10 +78,10 @@ const ToolBar = ({ onZoomChange, currentPage, onPageChange, totalPages })=>{
|
||||
</div>
|
||||
|
||||
<input
|
||||
type='number'
|
||||
type='text'
|
||||
name='page'
|
||||
min={1}
|
||||
max={state.totalPages}
|
||||
inputMode='numeric'
|
||||
pattern='[0-9]'
|
||||
id='pageInput'
|
||||
value={pageInput}
|
||||
onChange={(e)=>{
|
||||
|
||||
Reference in New Issue
Block a user