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

remove attribute readonly="readonly" from input #109

Closed
aniculita opened this issue Mar 1, 2018 · 6 comments
Closed

remove attribute readonly="readonly" from input #109

aniculita opened this issue Mar 1, 2018 · 6 comments

Comments

@aniculita
Copy link

Hi

I have the zebra datepicker inside a collapsible bootstrap area which is set to be collapsed initially (so datepicker is not visible).
But when I expand the collapsible area, the input of datepicker gets an readonly attribute who does not allow me to enter manually the date.
I want to be able to insert manually the date, after expanding collapsible area and the datepicker gets visible :)

<input name="" class="datepicker form-control" type="text" readonly="readonly" placeholder="dd/mm/yyyy" value="" data-zdp_format="d/m/Y">

Any ideas? thank you !!

@stefangabos
Copy link
Owner

Set readonly_element option to FALSE

@aniculita
Copy link
Author

Yes, it is set to false but is no working

/*

  • Display date picker where needed
    */
    function HRdisplayDatePicker() {
    if ($.isFunction($.fn.Zebra_DatePicker)) {
    $('.datepicker').Zebra_DatePicker({
    readonly_element: false,
    select_other_months: true,
    open_icon_only: true,
    format: "d/m/Y"
    });
    }
    }

@stefangabos
Copy link
Owner

hmmm, ok, will look into it. thanks!

@aniculita
Copy link
Author

Thank you !!!!!

@stefangabos
Copy link
Owner

is there any callback that you run when showing the collapsible?

@aniculita
Copy link
Author

yes

stefangabos added a commit that referenced this issue Jun 28, 2018
…ribute from the element, if present; possibly this is the fix for #109
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

2 participants