Socket
Socket
Sign inDemoInstall

ng-pick-datetime

Package Overview
Dependencies
6
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.0.14 to 6.0.15

11

date-time/date-time-picker-input.directive.js

@@ -421,3 +421,4 @@ import { Directive, ElementRef, EventEmitter, forwardRef, HostBinding, HostListener, Inject, Input, Optional, Output, Renderer2 } from '@angular/core';

result = this.getValidDate(result);
if (!this.isSameValue(result, this._value)) {
if (!this.isSameValue(result, this._value) ||
result === null) {
this._value = result;

@@ -437,4 +438,4 @@ this.valueChange.emit(result);

result = this.getValidDate(result);
if ((this._selectMode === 'rangeFrom' && this.isSameValue(result, this._values[0])) ||
(this._selectMode === 'rangeTo' && this.isSameValue(result, this._values[1]))) {
if ((this._selectMode === 'rangeFrom' && this.isSameValue(result, this._values[0]) && result) ||
(this._selectMode === 'rangeTo' && this.isSameValue(result, this._values[1])) && result) {
return;

@@ -460,3 +461,5 @@ }

to = this.getValidDate(to);
if (!this.isSameValue(from, this._values[0]) || !this.isSameValue(to, this._values[1])) {
if (!this.isSameValue(from, this._values[0]) ||
!this.isSameValue(to, this._values[1]) ||
(from === null && to === null)) {
this._values = [from, to];

@@ -463,0 +466,0 @@ this.valueChange.emit(this._values);

{
"name": "ng-pick-datetime",
"version": "6.0.14",
"version": "6.0.15",
"description": "Angular Date Time Picker",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc