question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Modal > Input not work when called from Menu

See original GitHub issue

🐛 Bug report

Modal > Input not works when called from a Menu Component.

💥 Steps to reproduce

  1. Create something with Menu Component
  2. Create Something with Modal component and put some Input inside
  3. Call the Modal Component inside the Menu Component
  4. See error

💻 Link to reproduction

CodeSandbox reproduction: https://codesandbox.io/s/frosty-sanderson-t88bn?file=/src/Main.js

🧐 Expected behavior

The Input should works normal, capturing the user input.

🌍 System information

Software Version(s)
Chakra UI 1.4.2
Browser Brave Browser (Chrome 89)
Operating System Elementary OS 5.1.7

📝 Additional information

Preview

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
payapulacommented, Apr 6, 2021

@sammarxz I digged into this to check if this has to do with react-hook-form, but its not. This is happening for simple <input/> as well. Need to check on the implementation of Menu to find the root cause for this issue.

I was able to reproduce this issue in this Codesandbox repro

0reactions
dbousamracommented, Aug 5, 2021

Alright, seems unrelated to my new component. Turns out just upgrading Chakra fixes it. It was broken in 1.5.2 and works in 1.6.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot type (or even focus) in input type="text" while ...
It appears that this answer would resolve your problem. Twitter Bootstrap modal blocks text input field. The author recommends against a ...
Read more >
How to Build a Modal with JavaScript - freeCodeCamp
It's a web page element that pops up and displays in front of other page content. You can use modals for doing things...
Read more >
Bootstrap Modal - examples & tutorial
If the height of a modal changes while it is open, you should call myModal.handleUpdate() to readjust the modal's position in case a...
Read more >
Angular directives for Bootstrap - AngularUI
controller (Type: function|string|array , Example: MyModalController ) - A controller for the modal instance, either a controller name as a string, or an...
Read more >
Modal - Bootstrap
How it works · Modals are built with HTML, CSS, and JavaScript. · Clicking on the modal “backdrop” will automatically close the modal....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found