Skip to content

disableButton prop on Searchbar make the app crash #262

@Pitouli

Description

@Pitouli

Check that this is really a bug

  • I confirm

Reproduction link

https://stackblitz.com/edit/vitejs-vite-lxdqrrd5?file=src%2Fmain.tsx

Bug description

If you add the disableButton prop on the Searchbar component, the app crashes with the following error:

Uncaught ReferenceError: React is not defined
    at SearchDisableIcon (konsta_react.js?v=067883d7:9457:3)

Note: I have created a new stackblitz because the proposed one is on a very old version of Konsta. But I failed to make it work properly on Konsta... But I have the same Searchbar error on my proper working project.

Expected Behavior

The disableButton should make the disable button visible

Actual Behavior

It makes the app crash

Konsta UI version

5.0.6

Platform/Target and Browser Versions

All

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Konsta UI issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    ReactIssue with Tailwind Mobile React

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions