pikaday-angular icon indicating copy to clipboard operation
pikaday-angular copied to clipboard

Conflict with other directives

Open manar-mk opened this issue 9 years ago • 0 comments

Hi, there. I discovered the conflict of your plugin with another. I'm using ui-mask in my project to set the masked input of my date in format 'DD.MM.YYYY' and using a trigger to open pickaday calendar.

Markup:

<input 
    ui-mask 
    clear-errors 
    model-view-value="true" 
    ui-mask-placeholder-char="-" 
    ng-attr-ui-mask="99.99.9999" 
    ng-model="$ctrl.registerData.securityQuestionDate" 
    format="DD.MM.YYYY" 
    pikaday="$ctrl.registerData.pickerObject" 
    type="text" 
    class="form-control" 
    id="registerSecurityQuestion" 
    placeholder="DD.MM.YYYY" 
    trigger="datepicker-button">
<div 
    id="datepicker-button" 
    ng-click="$ctrl.focusInput('registerSecurityQuestion')" 
    class="input-group-addon input-group-addon_button">
    <span class="icon icon_calendar"></span>
</div>

When I select the date calendar doesn't hide. Only after second click.

How can I handle that event?

manar-mk avatar Nov 04 '16 15:11 manar-mk