Skip to content

Autofocus not working inside Reactstrap Modal  #335

@indapublic

Description

@indapublic

Autofocus not working if element inside Reactstrap Modal

  • version 4.2.0
  • components: Modal

Example

import {Modal} from 'reactstrap'

render () {
    const {handleSubmit} = this.props
    return (
      <Modal isOpen={true}>
        <form onSubmit={handleSubmit}>
          <fieldset>
            <input name="email" type="email" label="Email Address" />
            <input name="password" type="password" label="Password" autoFocus={true} />
            <button type="submit">Press me</button>
          </fieldset>
        </form>
      </Modal>
    )
  }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions