Merge pull request #315 from emrysal/bugfix/fixes-phoneinput-crashing

onChange callback got removed in eslint cleanups
This commit is contained in:
Bailey Pumfleet 2021-06-28 15:11:54 +01:00 committed by GitHub
commit 5ebd9d5270
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -238,6 +238,9 @@ export default function Book(props: any): JSX.Element {
id="phone"
required
className="shadow-sm focus:ring-blue-500 focus:border-blue-500 block w-full sm:text-sm border-gray-300 rounded-md"
onChange={() => {
/* DO NOT REMOVE: Callback required by PhoneInput, comment added to satisfy eslint:no-empty-function */
}}
/>
</div>
</div>