react-semantic-ui-datepickers icon indicating copy to clipboard operation
react-semantic-ui-datepickers copied to clipboard

Remove the outer div in the datepicker

Open arthurdenner opened this issue 7 years ago • 4 comments

🌈 Feature

Right now, we have an outer div in the datepicker with the field class wrapping the Input component and the calendar. This approach has some issues, especially related to how the library behaves in forms.

We must remove this div and implement the rendering of the calendar in another way. I'm not sure how this is supposed to work, but maybe these implementations can help:

https://github.com/CompuIves/codesandbox-client/blob/master/packages/app/src/app/components/ContextMenu/index.js

https://github.com/CompuIves/codesandbox-client/blob/master/packages/app/src/app/components/Portal/index.js

arthurdenner avatar Dec 10 '18 19:12 arthurdenner

@lucasnsborges, you may want to take a stab at this.

arthurdenner avatar Dec 10 '18 19:12 arthurdenner

I'm probably having this issue in a form inside a modal. image

Unfortunatelly, I to use this workaround to fix.

input {
    width: inherit !important;
}

erickne avatar Jan 08 '19 12:01 erickne

Yes, @erickne. This is probably the reason. Sorry about that. :confused:

If you want to take a stab at this, feel free to do it, I'd appreciate a lot!

arthurdenner avatar Jan 08 '19 12:01 arthurdenner

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 19 '20 04:04 stale[bot]