Datepicker with multiselect

Hi,
my need is to have a datepicker with a multiselection but without today preselected. By searching I found this post http://disq.us/p/25dzku7, and tried the same thing but without result, here is a snippet:
Code Snippet

Can you suggest a way to obtain my desired result ?

Hello @Gjika ,

It seems that this is a bug, and we plan to fix it in one of the future releases.
Thank you for your report regarding this bug.

As a workaround, you can create a custom calendar view and customize its default setValue method using protoUI .

Here’s the example : Code Snippet

But take into account that in this example I used the original component name (webix.ui.calendar) in protoUI, so it affected it directly (for all views), rather than creating a custom view.
So this method is suitable for global fixes.
But in larger applications, or if our complex widgets are used, it is better to write other changes in separate (new) components and then use for building the UI.

On line 6, we check if the date is an array containing null or an empty string. If so, we select null .
On line 10, this is the way how to call the default setValue method of the view:

webix.calendar.prototype.setValue.call(this, date, config);

Alternatively, you can customize the default $prepareValue method in the datepicker view, where you also perform a check for [""] or [null] :

if (webix.isArray(val) && (val[0] === "" || val[0] === null)) {
    return "";
}

Please check the example: Code Snippet