@travelswitchhq/flight-search-react 1.1.1 → 1.1.2
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 +30 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +30 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1153,17 +1153,17 @@ padding-inline-start: 25px;
|
|
|
1153
1153
|
flex: 0 1 auto;
|
|
1154
1154
|
min-width: fit-content;
|
|
1155
1155
|
}
|
|
1156
|
-
.MobileShow{
|
|
1156
|
+
.sw-container .MobileShow{
|
|
1157
1157
|
display: none;
|
|
1158
1158
|
}
|
|
1159
|
-
.MobileHide{
|
|
1159
|
+
.sw-container .MobileHide{
|
|
1160
1160
|
display: block;
|
|
1161
1161
|
}
|
|
1162
1162
|
@media screen and (max-width: 768px) {
|
|
1163
|
-
.MobileShow{
|
|
1163
|
+
.sw-container .MobileShow{
|
|
1164
1164
|
display: block;
|
|
1165
1165
|
}
|
|
1166
|
-
.MobileHide{
|
|
1166
|
+
.sw-container .MobileHide{
|
|
1167
1167
|
display: none;
|
|
1168
1168
|
}
|
|
1169
1169
|
.sw-container{
|
|
@@ -1345,6 +1345,9 @@ padding-inline-start: 25px;
|
|
|
1345
1345
|
.sw-fsrh-chk-main{
|
|
1346
1346
|
flex-wrap: wrap;
|
|
1347
1347
|
}
|
|
1348
|
+
.sw-custom-dropdown-trigger{
|
|
1349
|
+
pointer-events: none;
|
|
1350
|
+
}
|
|
1348
1351
|
}
|
|
1349
1352
|
`;
|
|
1350
1353
|
|
|
@@ -2157,7 +2160,29 @@ function FlightSearchWidget({
|
|
|
2157
2160
|
{
|
|
2158
2161
|
type: "text",
|
|
2159
2162
|
id: `${dropdownType}-${segmentIndex}`,
|
|
2160
|
-
className: `sw-custom-dropdown-trigger ${value === placeholder || !value ? "sw-placeholder" : ""}`,
|
|
2163
|
+
className: `sw-custom-dropdown-trigger MobileHide ${value === placeholder || !value ? "sw-placeholder" : ""}`,
|
|
2164
|
+
value: value === placeholder ? "" : value ?? "",
|
|
2165
|
+
placeholder,
|
|
2166
|
+
onFocus: (e) => {
|
|
2167
|
+
onOpen();
|
|
2168
|
+
e.currentTarget.select();
|
|
2169
|
+
},
|
|
2170
|
+
onClick: (e) => e.currentTarget.select(),
|
|
2171
|
+
onChange: (e) => {
|
|
2172
|
+
const val = e.target.value;
|
|
2173
|
+
handleSegmentFieldChange(segmentIndex, dropdownType, val);
|
|
2174
|
+
triggerSearchAirport(segmentIndex, dropdownType, val);
|
|
2175
|
+
},
|
|
2176
|
+
onKeyDown: (e) => handleKeyDown(e, dropdownType, segmentIndex)
|
|
2177
|
+
}
|
|
2178
|
+
),
|
|
2179
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
2180
|
+
"input",
|
|
2181
|
+
{
|
|
2182
|
+
type: "text",
|
|
2183
|
+
readOnly: true,
|
|
2184
|
+
id: `${dropdownType}-${segmentIndex}`,
|
|
2185
|
+
className: `sw-custom-dropdown-trigger MobileShow ${value === placeholder || !value ? "sw-placeholder" : ""}`,
|
|
2161
2186
|
value: value === placeholder ? "" : value ?? "",
|
|
2162
2187
|
placeholder,
|
|
2163
2188
|
onFocus: (e) => {
|