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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

121497 Dec 21,2015 07:15 AM Dec 23,2015 09:03 AM JavaScript 3
loading
Tags: ejDateTimePicker
Greg Gannicott
Asked On December 21, 2015 07:15 AM

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.

Greg Gannicott
Replied On December 22, 2015 04:57 AM

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.

Robert David
Replied On December 22, 2015 11:54 AM

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

Saravanan Janakiraman [Syncfusion]
Replied On December 23, 2015 09:03 AM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;