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 committed 2024-08-19 22:40:50 -05:00
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)=>{