Stuff_assessment_component
A phone number inputbox with nation code
- On focus: position cursor right to the code and open widget
- Clicking outside the widget will close it (but not in the input area)
- Clicking on ‘Search’ - allow typing (focus) and open all options below (scrollable)
- On typing - show related results
- On selecting - switch to the selected country, show ‘Search’ as default, close the list, and position the cursor right to the code
- Clone this repo to your local machine using
https://github.com/Wesley16838/stuff_assessment.git
Open the terminal in the Visual Studio and run the code in the terminal as follows:
$ npm i
$ npm start
Open http://localhost:3000 to view it in the browser.