Demo-Page Repository

Home > mui-country-code-selector > CCSelectorState > setInputSelection

CCSelectorState.setInputSelection property

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.

Sets the inputSelection state variable. Takes an object containing the start and end indices of the text selection within the phone number input element as paramter.

Signature:

setInputSelection: (inputSelection: InputSelection) => void;