Giter Site home page Giter Site logo

Comments (2)

edmundhung avatar edmundhung commented on May 18, 2024 1

I just notice this issue. Maybe you have already figured out a solution.

Unfortunately useControlledInput is properly needed. As Conform are listening to native DOM events like input, blur, submit to find out when the form should be (re)validated. However, React itself or most of the solution does not dispatch those events for you while you are modifying the value.

However, if you can make each options in the dropdown a submit button with formNoValidate being true, so that selecting an option would also trigger a submit event, it might be able to work without the useControlledInput hook too.

I don't have any example for the 2nd solution yet. But I think it is totally possible to have dropdown or datepicker working nicely even without JS with a bunch of submit buttons 😄

from conform.

brandonpittman avatar brandonpittman commented on May 18, 2024 1

I realized it wasn’t going to work as I thought it would and kinda gave up for now. I’ll try your suggestions on Monday.

I’ve got a React Aria select that has its own shadow input. I realized that it just re-renders when the selected value changes. It doesn’t emit a change which means Conform doesn’t catch the change.

from conform.

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.