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

unable to remove class ui-state-active when I deselect a date #236

Open
puneetpandey opened this issue Aug 29, 2018 · 0 comments
Open

unable to remove class ui-state-active when I deselect a date #236

puneetpandey opened this issue Aug 29, 2018 · 0 comments

Comments

@puneetpandey
Copy link

puneetpandey commented Aug 29, 2018

Hi,

I am facing a small issue, wherein if I select a date and de-select it, it does not remove ui-state-active class and because of this, the de-selected date becomes invisible.

I am attaching the code snippet and screenshot:
HTML:

.pick-dates.row 
  #contact-mdp-picker.col-md-6
  .dates-selected.col-md-6
    %label Selected Dates
    #selected_dates

Coffeescript:

preSelectedDates = []
$.map $('.selected_date_id_hidden'), (input, i) ->
  preSelectedDates.push $(input).val()
if preSelectedDates.length < 1
  preSelectedDates = null
$('#contact-mdp-picker').multiDatesPicker addDates: preSelectedDates, dateFormat: "yy-mm-dd", onSelect: ->
  dates = $('#contact-mdp-picker').multiDatesPicker('getDates')
  $(dates).each (i, date) ->
      console.log(date)

date-invisible

Please advise!

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

No branches or pull requests

1 participant