appnexus / lucid

A UI component library from Xandr.
https://appnexus.github.io/lucid
Other
201 stars 80 forks source link

Auto disable text input on Paginator when only one page is available #1313

Closed n8thegr8 closed 2 years ago

n8thegr8 commented 2 years ago

Currently in the Paginator component, when there is only a single page available, users can still interact with the text field. So when they see [ 1 ]of 1, they can still enter something like [ 20 ]of 1.

A nice to have would be to auto disable the text input in cases where there's only a single page to view. There is a disabled state for Paginator, but it's not applied automatically in these situatons.