Skip to content

No typing occurs if the first argument passed to the type function is an empty string #1

@typekev

Description

@typekev

This will work as expected:

      <Keyboard
        sentenceDelayPerCharRange={[0, 0]}
        keyPressDelayRange={[50, 70]}
      >
        {({ type }) =>
          type(
            'test',
            3000,
            "Multiple instances of Keyboard can easily be rendered at the same time"
          )
        }
      </Keyboard>

While this will not:

      <Keyboard
        sentenceDelayPerCharRange={[0, 0]}
        keyPressDelayRange={[50, 70]}
      >
        {({ type }) =>
          type(
            '',
            3000,
            "Multiple instances of Keyboard can easily be rendered at the same time"
          )
        }
      </Keyboard>

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions