@norwegian/core-components 5.16.0 → 5.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/norwegian-core-components.umd.js +3 -0
- package/bundles/norwegian-core-components.umd.js.map +1 -1
- package/esm2015/lib/components/passenger-select/passenger-select.component.js +4 -1
- package/fesm2015/norwegian-core-components.js +3 -0
- package/fesm2015/norwegian-core-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -7338,6 +7338,9 @@
|
|
|
7338
7338
|
if (this.nasFormGroup && this.nasFormControlGroupBooking) {
|
|
7339
7339
|
var groupBookingControl = this.nasFormGroup.get(this.nasFormControlGroupBooking);
|
|
7340
7340
|
this.isGroupBooking = this.totalCount >= this.groupBookingLimit;
|
|
7341
|
+
if (this.groupBookingLimit < 1) {
|
|
7342
|
+
this.isGroupBooking = false;
|
|
7343
|
+
}
|
|
7341
7344
|
if (groupBookingControl.value !== this.isGroupBooking) {
|
|
7342
7345
|
groupBookingControl.patchValue(this.isGroupBooking);
|
|
7343
7346
|
}
|