Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flags dropdown not visible in remix application #661

Open
RajeshP27 opened this issue Dec 13, 2023 · 0 comments
Open

Flags dropdown not visible in remix application #661

RajeshP27 opened this issue Dec 13, 2023 · 0 comments

Comments

@RajeshP27
Copy link

The Dropdown not showing flags in remix application using react . As shown below image
image
phone

code :-
import React, { useState } from 'react';
import PhoneInput from 'react-phone-input-2';
import 'react-phone-input-2/lib/plain.css';
import 'react-phone-input-2/lib/bootstrap.css'
const UnifiedPhoneInput: React.FC = () => {
const [phoneNumber, setPhoneNumber] = useState('');

const handleOnChange = (value: string, country: any) => {
setPhoneNumber(value);
};

return (


<PhoneInput
country={'US'}
value={phoneNumber}
onChange={handleOnChange}
inputProps={{
name: 'phone',
required: true,
autoFocus: true,
}}
/>

);
};

export default UnifiedPhoneInput;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant