Home > mui-country-code-selector > CCSelectorState > inputSelection
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
The start and end indices of the selected text within the phone number input.
React keeps track of the cursor position and selection of the controlled input elements. In some situations, however, React doesn’t know where to place the cursor. For example, when an input does not get accepted by the onChange handler and the value is not changed, React places the cursor at the end of the value string. Only remedy to this seems to be to keep track of the cursor position internally, within the application.
Signature:
inputSelection: InputSelection;