Coder Social home page Coder Social logo

Comments (7)

JacksonBates avatar JacksonBates commented on July 29, 2024

This is a known issue amongst the team - but we hadn't added it here yet. Thanks for adding it.

Just to clarify - it doesn't work on any browser :)

from pair-frontend.

Chovin avatar Chovin commented on July 29, 2024

sorry for the slew of issues.
It's great seeing you guys actively working on this.
I'd love to jump in when I get the time 👍

from pair-frontend.

JacksonBates avatar JacksonBates commented on July 29, 2024

No worries - we appreciate the issues. While we know about all of them, we do forget to add them clearly ourselves sometimes :)

from pair-frontend.

Chovin avatar Chovin commented on July 29, 2024

You speak as if you have a means of easy communication within your team.
How would people that want to contribute join that so as to know what needs to be done and where to contribute, etc.?

from pair-frontend.

JacksonBates avatar JacksonBates commented on July 29, 2024

Most of the communication is handled via the Issues threads and Pull requests on GitHub. Sometimes people reach out to me via the forum or a couple of different Slack groups I'm also in.

Everything that should be discussed properly should be in issues threads though - which works 90% of the time, except for when there are small omissions.

from pair-frontend.

BenGitter avatar BenGitter commented on July 29, 2024

Note that if you try to type in the "Other" field it will give a 400 Bad Request from the server.

It seems like the setup property that is send to the server contains the first letter you "input" (invisibly) in the "Other" field.

from pair-frontend.

BenGitter avatar BenGitter commented on July 29, 2024

Selecting "Preferred Technologies" doesn't work either, because it doesn't run handleChange. This doesn't throw an error, but it simply won't show anything (because it wasn't sent).

I found the error (in case nobody else did it already): The server expects setup to be an array (which should be created from the "Preferred Technologies", which it doesn't). But the real problem is that the "Other" field also changes setup. Since the name of the "Other" field is setup, this is also set as the ID of the input element. Then handleChange assigns the value (whatever you typed in) to [e.target.id] (which is setup). So setup gets overwritten with a string, instead of an array. The server then returns a 400 Bad Request and nothing is added.

EDIT: handleChange doesn't run because the props.handleChange is not passed into the ModalSelectionList in ModalForm.js.

EDIT 2: You can type inside the "Other" field, but since every onChange updates the state and therefore refreshes everything, it gets empty every time you type something. The problem is that the value of the "Other" field isn't saved inside the state and manually set to "" in ModalForm.js.

I think it is best if the "Other" field gets another name (and so also another ID). The value of the "Other" field should be kept in the state (so that it can be updated). The server should than handle another property. It is no problem if the backend isn't updated directly, since it will only skip it, instead of giving an error. Or does the backend check for unknown properties?

from pair-frontend.

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.