Questions tagged [reagent-forms]

Reagent provides a minimalistic interface between ClojureScript and React. Reagent-forms extends reagent with functionalities and shortcuts to create forms based in Reagent, without reinventing the wheel.

11 questions
10
votes
2 answers

Are reagent-forms meant to be using with re-frame?

I'm building an application with re-frame and I'm wondering if reagent-form are meant to be used with re-frame or not, as reagent-form brings in its own way of handling state which is different than re-frame.
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
8
votes
1 answer

Problem with Autocomplete (Material UI + React + Reagent/ClojureScript)

I have a problem using the Material UI's Autocomplete with Reagent (ClojureScript). The element renders fine, but when I try to click on it, I get the following exceptions: Uncaught TypeError: Cannot read property 'focus' of null at handleClick…
2
votes
1 answer

Simple atom resetting and validation checking not working as intended

I am making a React/ClojureScript app with an input for a min and a max value followed by an input that will be checked if it is in the range of the min-max. Then if it is in the range it will enable a Valid button and if not disable it. It works…
Two Die
  • 21
  • 2
1
vote
2 answers

Which reagent Form 2 component function arguments are in use?

Which form is better? (defn my-func [arg arg2] (fn [] [:div (str arg arg2)])) Or this one? (defn my-func [] (fn [arg arg2] [:div (str arg arg2)])) I'm writting from my phone so forgive me indentation...
1
vote
2 answers

Reagent turning span into editable field on click

Creating a figwheel/cljs/clj application, working on the front end when the user hits a button I want to turn a span into an editable field on click using reagent, How would I go about this? I've been reading about focus switching, and…
1
vote
2 answers

Why does reagent not re-render my reagent-form on a state change

I need to create a form containing a select field where the options depend on the currently available mail accounts. I retrieve these mail accounts in a API request after the page has loaded. The following function creates the form with the select…
Kungi
  • 1,477
  • 1
  • 18
  • 34
0
votes
0 answers

Reactive adding/removing inputs with Reagent-forms

I have some datastructure in an atom I want to bind to inputs using reagent-forms. The tricky thing is, that I want to bind not only the content of the inputs to said atom, but the inputs themselves; i.e. I want to reactively remove and add input…
Phylax
  • 189
  • 10
0
votes
2 answers

Can i use (if) as a form-2 reagent render-function

I use an (if) condition as form-2 render-function in this way: (defn bro [dex] (let [yo (inc dex)] (if true [:div (str yo)]))) instead of this way: (defn bro [dex] (let [yo (inc dex)] (fn [dex] …
0
votes
1 answer

Antizer form submit data handling

I would like to use ant design components in reagent through antizer but I can't figure out how to extract fields values from the form after submitting. I can't find anything in the documentation. Someone more expert than me has resolved this…
0
votes
0 answers

reagent forms multi-select not working for list

I was following the sample code from http://yogthos.github.io/reagent-forms-example.html and was attempting the use the multi-select option for a list. (defn select-item [item] (go (reset! current-selection item) (let [response (
0
votes
2 answers

reagent-forms bind-fields ignores ':field', missing dependencies or incorrect usage?

I am not able to get reagent-forms to bind to an atom. I have data binding working in reagent elsewhere in the same file. And I can set and display the atom in question as expected. I have form-doc that returns a [:div] vector with inputs I'd like…
Will
  • 1,206
  • 9
  • 22