indrimuska / angular-moment-picker

Angular Moment Picker is an AngularJS directive for date and time picker using Moment.js.
http://indrimuska.github.io/angular-moment-picker/
MIT License
527 stars 229 forks source link

fails to start with jquery #265

Open ghost opened 5 years ago

ghost commented 5 years ago

I get only following:

angular.js:11655 Error: Failed to set the 'innerHTML' property on 'Element': The provided markup is invalid XML, and therefore cannot be inserted into an XML document.
    at Function.buildFragment (jquery-2.1.3.min.js?v=3:3)
    at n.fn.init.domManip (jquery-2.1.3.min.js?v=3:3)
    at n.fn.init.append (jquery-2.1.3.min.js?v=3:3)
    at n.fn.init.<anonymous> (jquery-2.1.3.min.js?v=3:3)
    at n.access (jquery-2.1.3.min.js?v=3:2)
    at n.fn.init.html (jquery-2.1.3.min.js?v=3:3)
    at fa (angular.js:7475)
    at S (angular.js:7039)
    at S (angular.js:7051)
    at S (angular.js:7051)
    at S (angular.js:7051)
    at S (angular.js:7051)
    at S (angular.js:7051)
    at S (angular.js:7051)
    at S (angular.js:7051)
    at S (angular.js:7051)
    at D (angular.js:6946)
    at angular.js:1457
    at n.$eval (angular.js:14466)
    at n.$apply (angular.js:14565)
    at angular.js:1455
    at Object.e [as invoke] (angular.js:4203)
    at d (angular.js:1453)
    at uc (angular.js:1473)
    at Jd (angular.js:1367)
    at XMLDocument.<anonymous> (angular.js:26304)
    at j (jquery-2.1.3.min.js?v=3:2)
    at Object.fireWith [as resolveWith] (jquery-2.1.3.min.js?v=3:2)
    at Function.ready (jquery-2.1.3.min.js?v=3:2)
    at XMLDocument.I (jquery-2.1.3.min.js?v=3:2)

when adding

<div class="input-group col-sm-8"
    moment-picker="ctrl.datepicker"
    ng-class="{'has-error' : test.$triggertime_error}"
    format="YYYY-MM-DD">
    <span class="input-group-addon">
        <i class="octicon octicon-calendar"></i>
    </span>
    <input class="form-control"
        placeholder="Select a date"
        ng-model="test.triggertime"
        ng-model-options="{ updateOn: 'blur' }" />
</div>