We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

ej-datetimepicker: Unable to apply our own custom directives to an element when ej-datetimepicker is applied to same element.

Since applying the 13.3.0.18 upgrade, directives which we're applying to an element which has ej-datetimepicker applied to it, are not being applied.

So for example, if I have the following basic directive:

angular.module("ma.directives").directive("maSyncFusionDisabled", [function () {
    return {
        type: "A",
        scope: true,
        link: function (scope, element, attrs) {
            console.log("linked");
        }
    }
}]);

And apply it alongside ej-datetimepicker:

<input ma-sync-fusion-disabled="isTemplateLive" ej-datetimepicker />

... the 'console.log("linked")' above is not triggered.

If I remove ej-datetimepicker from the element, it is triggered.

There are no errors in the console log which might help.

I have tried the various scope types to our directive. eg:
  • scope: true
  • scope: {}
  • ... or no scope at all.
Thanks.

3 Replies

GG Greg Gannicott December 22, 2015 09:57 AM UTC

Just for your info, this doesn't just affect our custom Directives, but standard AngularJS directives (eg. ng-blur) are no longer applying to your control (they did prior to the upgrade).

It's also affecting ejNumberSpinner.

I haven't checked other controls.

Thanks.


RD Robert David December 22, 2015 04:54 PM UTC

This is not isolated to just the date picker I can replicate the lack of ng-blur in the numeric text box too however it does look like both ng-blur and e-focusout are not firing in the playground.

http://jsplayground.syncfusion.com/a1nbklc2


SJ Saravanan Janakiraman Syncfusion Team December 23, 2015 02:03 PM UTC

Hi Robert,

Thanks for contacting Syncfusion support.

We are able to reproduce the reported issue. We have confirmed this as a defect and logged an issue report for this. Please log on to our support website to check for further updates.


Link: https://www.syncfusion.com/account/login


Please let us know if you have further queries.


Regards,

Saravanan A J


Loader.
Live Chat Icon For mobile
Up arrow icon