Giter Site home page Giter Site logo

Comments (4)

karltaylor avatar karltaylor commented on May 24, 2024

Hey @zaweb, please can you provide a MRE

from react-collapsible.

zaweb avatar zaweb commented on May 24, 2024

Hmm... Unfortunately, I can't reproduce it on jsfiddle. Figures. I wonder if it's something to do with reactstrap...
I'll see if I can work around it on my own since I can't give you much to work with.
Thank you.

from react-collapsible.

zaweb avatar zaweb commented on May 24, 2024

If it helps, here's where I'm having the problem:

<CInput
name={`foos[${index}].${key}`}
value={foo[key]}
 onChange={(e) => {handleUpdateProperty(`foos[${index}].${key}`, e.target.value, 'foos') }}
/>

If I remove "value={foo[key]}" then it works fine. But if it's in there, it instantly closes on any keystroke in an input field.

from react-collapsible.

j-eick avatar j-eick commented on May 24, 2024

I have a form that appears when the Collapsible is opened. The Collapse is instantly closed whenever any key is pressed in any field. This makes filling out a collapsible form impossible. My field inputs use a simple onChange handler, so it's unclear why any keystroke triggers the Collapsible to close. Is this expected behavior? Thank you!

Thank you so much for your post. I wanted to use this package for a formular as well.

Question:
My form has 5 input fields with one submit button at the end. Would a click into the second input field (after filling out the first one) close the collapsible?
If I understood your post correctly, then this is the case. Can you confirm?

Thanks in advance!

from react-collapsible.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.