diff --git a/src/BootstrapBlazor.Shared/Pages/Samples/DateTimePickers.razor b/src/BootstrapBlazor.Shared/Pages/Samples/DateTimePickers.razor index 1211e3c40ee5c7295ab757fe0bee8eaecb732ad1..62872f5263a9404630911891a6bd271dd47d5a44 100644 --- a/src/BootstrapBlazor.Shared/Pages/Samples/DateTimePickers.razor +++ b/src/BootstrapBlazor.Shared/Pages/Samples/DateTimePickers.razor @@ -117,7 +117,7 @@
+ MinValue="@(DateTime.Today.AddDays(1 - DateTime.Today.Day))" MaxValue="@(DateTime.Today.AddDays(46 - DateTime.Today.Day))" />
diff --git a/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.cs b/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.cs index aff7edda601e509e3bbf207b8c692df0ff980394..7b1a11cccb0ab742179be048077ff9e6e24d4a00 100644 --- a/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.cs +++ b/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.cs @@ -572,7 +572,6 @@ namespace BootstrapBlazor.Components ShowTimePicker = false; if (Validate() && ValueChanged.HasDelegate) { - await ValueChanged.InvokeAsync(Value); } if (OnConfirm != null) diff --git a/src/BootstrapBlazor/Components/Popover/Popover.js b/src/BootstrapBlazor/Components/Popover/Popover.js index bdaa8a1c9d6cd2339d9b49b87a50356c85bdcb7d..6f6a14b4112869caec9002a05830d31894f6e085 100644 --- a/src/BootstrapBlazor/Components/Popover/Popover.js +++ b/src/BootstrapBlazor/Components/Popover/Popover.js @@ -56,7 +56,7 @@ } }); - $('.datetime-picker-input-icon').on('click', function (e) { + $el.find('.datetime-picker-input-icon').on('click', function (e) { // handler disabled event if ($(this).hasClass('disabled')) return; @@ -65,9 +65,11 @@ $input.trigger('click'); }); - $('.disabled .cell').on('click', function (e) { - e.preventDefault(); - e.stopImmediatePropagation(); + $el.find('.date-table .cell').on('click', function (e) { + if ($(e.target).parent().parent().hasClass('disabled')) { + e.preventDefault(); + e.stopImmediatePropagation(); + } }); } else $input.popover(method); diff --git a/src/BootstrapBlazor/wwwroot/js/bootstrap.blazor.bundle.min.js b/src/BootstrapBlazor/wwwroot/js/bootstrap.blazor.bundle.min.js index 912939c822410e7654539123252f3ca5f85dd252..843dc366758a55a5c5689bbf7ef843cbe49cee59 100644 --- a/src/BootstrapBlazor/wwwroot/js/bootstrap.blazor.bundle.min.js +++ b/src/BootstrapBlazor/wwwroot/js/bootstrap.blazor.bundle.min.js @@ -40,4 +40,4 @@ x();"bottom"===a.start?(c.css({top:b.outerHeight()-c.outerHeight()}),n(0,!0)):"t /*! Summernote v0.8.18 | (c) 2013- Alan Hong and other contributors | MIT license */ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("jquery"));else if("function"==typeof define&&define.amd)define(["jquery"],e);else{var n="object"==typeof exports?e(require("jquery")):e(t.jQuery);for(var o in n)("object"==typeof exports?exports:t)[o]=n[o]}}(self,(function(t){return(()=>{"use strict";var e={9458:e=>{e.exports=t}},n={};function o(t){var i=n[t];if(void 0!==i)return i.exports;var r=n[t]={exports:{}};return e[t](r,r.exports,o),r.exports}o.amdO={},o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{o.r(i);var t=o(9458),e=o.n(t);function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){for(var n=0;n'),u=s('