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

additionalProperties can't be added with semantic-ui fluent-ui themes #1927

Closed
3 tasks done
ErQrYfkrju opened this issue Jul 19, 2020 · 28 comments · Fixed by #2429 or #2817
Closed
3 tasks done

additionalProperties can't be added with semantic-ui fluent-ui themes #1927

ErQrYfkrju opened this issue Jul 19, 2020 · 28 comments · Fixed by #2429 or #2817

Comments

@ErQrYfkrju
Copy link

ErQrYfkrju commented Jul 19, 2020

Prerequisites

Description

additionalProperties can`t be added with semantic-ui fluent-ui and material-ui themes

Steps to Reproduce

  1. Goto https://rjsf-team.github.io/react-jsonschema-form/
  2. Select additionalProperties example
  3. Select theme material-ui, semantic-ui, fluent-ui

Expected behavior

Expected behavior should be as for default and antd themes
Screen Shot 2020-07-22 at 15 31 12

Actual behavior

Can`t add or remove additioanlProperties for selected object
Screen Shot 2020-07-22 at 15 31 41

Version

Latest version from npm

@bretep
Copy link

bretep commented Jul 20, 2020

Just about to report the same issue, although I found it after upgrading to the latest.

@ValYouW
Copy link
Contributor

ValYouW commented Aug 5, 2020

Encountered into this also just now... any simple workaround?
I made a simple implementation of this feature by overriding ObjectFieldTemplate and FieldTemplate it seems to work on a very simple scenario, it's on CodeSandbox if anyone is interested...

@ErQrYfkrju
Copy link
Author

any news?

@epicfaace epicfaace changed the title additionalProperties can`t be added with semantic-ui fluent-ui and material-ui themes additionalProperties can`t be added with semantic-ui fluent-ui themes Aug 30, 2020
@epicfaace epicfaace changed the title additionalProperties can`t be added with semantic-ui fluent-ui themes additionalProperties can't be added with semantic-ui fluent-ui themes Aug 30, 2020
@ErQrYfkrju
Copy link
Author

ErQrYfkrju commented Sep 17, 2020

@jacqueswho any news on semantic-ui?

@jacqueswho
Copy link
Contributor

@ErQrYfkrju at the moment none of the themes support this feature. This is not a simple change and needs to be thought of how to integrate different themes to support this. One linear approach that all themes can use to support this feature

@ErQrYfkrju
Copy link
Author

ErQrYfkrju commented Sep 18, 2020

@jacqueswho Why none? Default, antd and now material-ui supports it. antd and material-ui adopted WrapIfAdditional component. I do not know where to start, to add support for semantic-ui...

@jacqueswho
Copy link
Contributor

will look into this then. As I have not seen the latest development with other themes

@ErQrYfkrju
Copy link
Author

@jacqueswho any news?

@jacqueswho
Copy link
Contributor

@ErQrYfkrju waiting for this pull request to be approved. Will then look at implementing this. I have made quite a lot of code changes in this branch. I see I need to alter the Field Template to wrapAdditional

@jacqueswho
Copy link
Contributor

@epicfaace There are going to be quite a few issues related to other themes not supporting the default behavior. I think we need to create a contributing guide doc, to assist others in the future. So we should either include utilities in the core and use them, or give some best practice guidance, direction. what do you think? we can create separate tasks for each to document how, and what to use to implement
The following are not quite clear

  • Additional Properties

  • theme specific props

  • Date picker

  • hidden fields

  • Submit Button

@ErQrYfkrju
Copy link
Author

@jacqueswho @epicfaace thanks for your work. Looking forward to see this feature implemented.....

@ErQrYfkrju
Copy link
Author

@epicfaace ping

@epicfaace
Copy link
Member

@epicfaace There are going to be quite a few issues related to other themes not supporting the default behavior. I think we need to create a contributing guide doc, to assist others in the future. So we should either include utilities in the core and use them, or give some best practice guidance, direction. what do you think? we can create separate tasks for each to document how, and what to use to implement
The following are not quite clear

  • Additional Properties
  • theme specific props
  • Date picker
  • hidden fields
  • Submit Button

Yeah, that's a good point and a good idea. A separate "contributing guide" page might be helpful.

@ErQrYfkrju
Copy link
Author

@epicfaace @jacqueswho Happy New Year!
Any news on this issue...?

@ErQrYfkrju
Copy link
Author

@epicfaace ping

@jacqueswho
Copy link
Contributor

@epicfaace @jacqueswho Happy New Year!
Any news on this issue...?

Waiting for the pull request to be approved. sorry

@epicfaace
Copy link
Member

Sorry, I'll take a look soon.

@abemedia
Copy link
Contributor

abemedia commented Feb 8, 2021

Same for Bootstrap 4. It doesn't support additionalProperties.

Edit: Have implemented it in a local fork. Will clean it up a bit tomorrow then submit the PR.

@jmcauhy
Copy link

jmcauhy commented Mar 30, 2021

Hello guys, any updates on the Semantic-ui theme?

@epicfaace
Copy link
Member

No one's working on it currently, so if you would like to contribute a PR, that would be welcome.

@ErQrYfkrju
Copy link
Author

ErQrYfkrju commented Apr 21, 2021

No one's working on it currently, so if you would like to contribute a PR, that would be welcome.

Why no one? @jacqueswho is working on three pull requests #2224, #2225, #2227 to be able to close this issue...

@ErQrYfkrju
Copy link
Author

@epicfaace please review following PR. I know you are very busy, but soon it would be one year anniversary for this issue. Thanks in advance!

@ErQrYfkrju
Copy link
Author

Hi, once #2224, #2225, #2227 are already merged in could this issue be resolved?

@ErQrYfkrju
Copy link
Author

@jacqueswho ping

@jacqueswho
Copy link
Contributor

@epicfaace ill see if I have time this week

@ErQrYfkrju
Copy link
Author

@jacqueswho ping

@ErQrYfkrju
Copy link
Author

@jacqueswho is there any possibility to get this working using custom patch or dirty hacks?

@jacqueswho
Copy link
Contributor

@ErQrYfkrju just got back from holiday. Will see if I can look at this next week. I have a branch for this that needs to be completed. Its just needs styling, positioning changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
7 participants