Skip to content
This repository has been archived by the owner on Aug 5, 2019. It is now read-only.

DateBoxAppended shows two datepickers and doesn't set date when clicked #496

Open
slugmandrew opened this issue Apr 1, 2014 · 8 comments
Labels

Comments

@slugmandrew
Copy link

When I use the DateBoxAppended inside a PopupPanel I am getting a couple of things going wrong. Firstly, when I click inside the TextBox I get the picker showing up twice, once for the TextBox and once for the icon:
dateboxerror

They seem to be interpreting the date wrong - one shows 04/02 and the other shows 02/04.

Also when I click to select a date on either of them it doesn't work.

Strange because I have the same box in another place and it works fine. The PopupPanel is the only difference I can think of.

@reinert
Copy link
Contributor

reinert commented Apr 1, 2014

I've already seen this bug. Strangely, it happens sometimes, not every time. Usually, when I refresh the page, the error is gone.

@slugmandrew
Copy link
Author

For me it seems to be happening in this instance all the time, but not in another.

The one that works is part of an editor chain though, so maybe that's got something to do with it.

@reinert reinert added the bug label Apr 2, 2014
@reinert
Copy link
Contributor

reinert commented Apr 2, 2014

Sent to backlog. Thanks for reporting.

@reinert
Copy link
Contributor

reinert commented May 6, 2014

I've tried some cases and I think the issue is completely solved.

I would appreciate your feedback.

@slugmandrew
Copy link
Author

Hi, I have a fork of gwt-bootstrap here: https://github.com/slugmandrew/gwt-bootstrap

I have just pulled the latest code into my own fork and will build my local copy to test...

@slugmandrew
Copy link
Author

OK, it seems like the problem of the two datepickers coming up is fixed, but I still can't change the date by clicking on a day. Must be something to do with my code... I'll look into it further tomorrow.

@slugmandrew
Copy link
Author

Apologies for the massive delay on this but just wanted to confirm that this problem only occurs when the widget's parent is a PopupPresenter, and using a regular nested presenter fixed the problem.

I am using GWTP btw so must be some difference with how the elements are attached to the DOM (using addToSlot() instead of addToPopupSlot())

@reinert
Copy link
Contributor

reinert commented Jul 18, 2014

Hum.. I use GWTP too. And I do use PopupPresenters too. But instead of using PopupView, I've created my own ModalView, integrated with the GWTP workflow.

I'm not having this issue anymore. If you find the reason for this misbehavior, please let me know.

Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants