0
0
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:
Gazook89
2024-08-19 22:40:50 -05:00
parent a42b867bcb
commit 176977dd2a

View File

@@ -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)=>{