@travelswitchhq/flight-search-react 1.1.4 → 1.1.6
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/dist/index.cjs +16 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +16 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -277,9 +277,11 @@ padding-inline-start: 25px;
|
|
|
277
277
|
visibility: visible;
|
|
278
278
|
opacity: 1;
|
|
279
279
|
}
|
|
280
|
+
.sw-dropdown{
|
|
281
|
+
width: 380px;
|
|
282
|
+
}
|
|
280
283
|
.sw-dropdown,
|
|
281
284
|
.p-autocomplete-panel {
|
|
282
|
-
width: 380px;
|
|
283
285
|
max-height: 310px;
|
|
284
286
|
margin: 0;
|
|
285
287
|
padding: 0;
|
|
@@ -293,9 +295,16 @@ padding-inline-start: 25px;
|
|
|
293
295
|
.sw-dropdown::-webkit-scrollbar {
|
|
294
296
|
display: none;
|
|
295
297
|
}
|
|
296
|
-
.sw-dropdown-list-card,
|
|
297
|
-
.sw-dropdown-list-box,
|
|
298
298
|
.p-autocomplete-item {
|
|
299
|
+
display: flex;
|
|
300
|
+
align-items: center;
|
|
301
|
+
gap: 15px;
|
|
302
|
+
padding: 10px 20px;
|
|
303
|
+
cursor: pointer;
|
|
304
|
+
font-family: var(--sw-font-family);
|
|
305
|
+
}
|
|
306
|
+
.sw-dropdown-list-card,
|
|
307
|
+
.sw-dropdown-list-box {
|
|
299
308
|
display: flex;
|
|
300
309
|
align-items: center;
|
|
301
310
|
gap: 15px;
|
|
@@ -1766,7 +1775,9 @@ function FlightSearchWidget({
|
|
|
1766
1775
|
useEffect(() => {
|
|
1767
1776
|
const handleClickOutside = (event) => {
|
|
1768
1777
|
const target = event.target;
|
|
1769
|
-
const isInsidePrimeDropdown =
|
|
1778
|
+
const isInsidePrimeDropdown = Boolean(
|
|
1779
|
+
target.closest(".p-dropdown-panel") || target.closest(".p-dropdown-items-wrapper") || target.closest(".p-dropdown-item") || target.closest('[data-pc-section="panel"]') || target.closest('[data-pc-name="dropdown"]')
|
|
1780
|
+
);
|
|
1770
1781
|
if (originDropdownRef.current && !originDropdownRef.current.contains(target)) {
|
|
1771
1782
|
setIsOriginDropdownOpen(false);
|
|
1772
1783
|
}
|
|
@@ -2755,6 +2766,7 @@ function FlightSearchWidget({
|
|
|
2755
2766
|
preferredAirlineList: next.map((item) => item.airline_code)
|
|
2756
2767
|
}));
|
|
2757
2768
|
},
|
|
2769
|
+
appendTo: "self",
|
|
2758
2770
|
field: "airline_name",
|
|
2759
2771
|
multiple: true,
|
|
2760
2772
|
forceSelection: true,
|