Checklist
Summary
The max_selections entry for multiselect triggers a warning when the number of selections == max_selections.
Reproducible Code Example
import streamlit as st
sel = st.multiselect("select user", options=['joshua', 'michelle', 'sarah'], max_selections=1)
print('you selected: ', sel)
Steps To Reproduce
Select one of the options and see the warning displayed in the multiselect.
Expected Behavior
The selection is made without displaying the warning.
Current Behavior
max_selections=1

max_selections=2

Is this a regression?
Debug info
- Streamlit version: 1.19.0
- Python version: 3.10.10
- Operating System: Fedora 36
- Browser: Brave v1.48.171
- Virtual environment:
Additional Information
No response
Are you willing to submit a PR?