Unable to use native Input `type` prop

1
closed
ayushsharma82
ayushsharma82
Posted 4 months ago

Unable to use native Input `type` prop #657

Bug report 🐞

Version & Environment

  • Chrome - latest
  • Version of geist-ui/react: 2.2.0

Expected Behaviour

The expected behaviour is to pass the type prop to the input tag inside the component.

Actual results (or Errors)

I got an error:

TypeError: Cannot read properties of undefined (reading 'color')

Call Stack
eval
node_modules\@geist-ui\react\esm\input\input.js (80:0)
<Input name="email" type="email" placeholder="Enter your E-mail Address" scale={1.3} width="100%" required/>
ayushsharma82
ayushsharma82
Created 4 months ago

My bad, didn't notice the htmlType prop.

For anyone with same issue as mine, use htmlType="email".