gwtbootstrap / gwt-bootstrap

A GWT Library that provides the widgets of Bootstrap, from Twitter.
http://gwtbootstrap.github.com
406 stars 190 forks source link

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

Open slugmandrew opened 10 years ago

slugmandrew commented 10 years ago

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 commented 10 years ago

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

slugmandrew commented 10 years ago

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 commented 10 years ago

Sent to backlog. Thanks for reporting.

reinert commented 10 years ago

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

I would appreciate your feedback.

slugmandrew commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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.