Opened 8 years ago

Closed 8 years ago

#4162 closed bug (worksforme)

Clear/Close buttons not visible.

Reported by: thzero Owned by:
Priority: minor Milestone: 1.7
Component: ui.datepicker Version: 1.6rc6
Keywords: Cc:
Blocked by: Blocking:


No amount of settings allow the clear and close buttons to show.

You can edit the code and change the var controls = '<div class="ui-datepicker-controls"...>' to '<div class=""..>' or in the css set the 'ui-datepicker-controls' style to remove the "display:none".

However this brings up a secondary issue. The ui code surrounds the "clear" and "close" with div tags so the "Clear" and "Close" appear vertically aligned to the left which looks bad. As all the "HTML" is embedded in the source, its impossible to tweak it they way you want. At very least doing something akin to the following for the controls section looks better, and requires less vertical room (you generally have more horizontal than vertical)...

<div class="ui-datepicker-controls"> <span class="ui-datepicker-clear"></span> <span class="ui-datepicker-close"></span> </div>

ui-datepicker-controls { text-align: right; } ui-datepicker-clear { float: left; } ui-datepicker-close { text-align: right; }

Change History (3)

comment:1 Changed 8 years ago by jzaefferer

  • Milestone changed from TBD to 1.6

comment:2 Changed 8 years ago by rdworth

  • Milestone changed from 1.7 to 1.8

comment:3 Changed 8 years ago by scottgonzalez

  • Milestone changed from 1.8 to 1.7
  • Resolution set to worksforme
  • Status changed from new to closed

The clear button was removed in 1.7 and the close button works fine, see the demo at

Note: See TracTickets for help on using tickets.