Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elements not clickable inside content property #1203

Open
DeFuex opened this issue Jul 13, 2023 · 0 comments
Open

Elements not clickable inside content property #1203

DeFuex opened this issue Jul 13, 2023 · 0 comments

Comments

@DeFuex
Copy link

DeFuex commented Jul 13, 2023

Describe the bug
When passing a custom content component (e.g: with an input field and/or button) using the content property of the component, it does not seem possible to click on any elements defined inside the custom component, e.g: the input field or a button.

To Reproduce
Steps to reproduce the behavior:
Create a custom component with an input field and/or button
use the custom component in the component e.g:

<Item 
       content={
            <>
                <TextInput
                    value={newLineOfText}
                    onChange={(event) => setAddNewTextLine(event.currentTarget.value)}
                    placeholder="Add a line of text..."
                  />
                  <Button onClick={handleAddLineOfText}}>
                      Add Line of Text
                  </Button>
              </>
         }

Expected behavior
Being able to left click and the field being visibly entered and being able to use the input field as intended to write text.
And also being able to click on the button.

Desktop (please complete the following information):

  • OS: MacOs
  • Browser: Firefox
  • Version 114.0.2 [64-bit]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant