@etsoo/materialui 1.1.76 → 1.1.77
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/lib/SearchBar.js +6 -8
- package/package.json +1 -1
- package/src/SearchBar.tsx +5 -9
package/lib/SearchBar.js
CHANGED
|
@@ -218,20 +218,18 @@ export function SearchBar(props) {
|
|
|
218
218
|
delayed.clear();
|
|
219
219
|
};
|
|
220
220
|
}, [className]);
|
|
221
|
-
React.useEffect(() => {
|
|
222
|
-
if (!hasMoreItems || state.form == null)
|
|
223
|
-
return;
|
|
224
|
-
const stack = state.form.querySelector(".SearchBarContainer");
|
|
225
|
-
if (stack)
|
|
226
|
-
stack.style.overflow = "visbile";
|
|
227
|
-
}, [hasMoreItems]);
|
|
228
221
|
// Layout
|
|
229
222
|
return (React.createElement(React.Fragment, null,
|
|
230
223
|
React.createElement("form", { id: "SearchBarForm", className: className, onChange: handleForm, ref: (form) => {
|
|
231
224
|
if (form)
|
|
232
225
|
state.form = form;
|
|
233
226
|
} },
|
|
234
|
-
React.createElement(Stack, { ref: dimensions[0][0], className: "SearchBarContainer", justifyContent: "center", alignItems: "center", direction: "row", spacing: 1, width: "100%",
|
|
227
|
+
React.createElement(Stack, { ref: dimensions[0][0], className: "SearchBarContainer", justifyContent: "center", alignItems: "center", direction: "row", spacing: 1, width: "100%", sx: {
|
|
228
|
+
scrollbarWidth: 0,
|
|
229
|
+
"-ms-overflow-style": "none",
|
|
230
|
+
"&::-webkit-scrollbar": {
|
|
231
|
+
display: "none"
|
|
232
|
+
},
|
|
235
233
|
"& > :not(style)": {
|
|
236
234
|
flexBasis: "auto",
|
|
237
235
|
flexGrow: 0,
|
package/package.json
CHANGED
package/src/SearchBar.tsx
CHANGED
|
@@ -294,14 +294,6 @@ export function SearchBar(props: SearchBarProps) {
|
|
|
294
294
|
};
|
|
295
295
|
}, [className]);
|
|
296
296
|
|
|
297
|
-
React.useEffect(() => {
|
|
298
|
-
if (!hasMoreItems || state.form == null) return;
|
|
299
|
-
const stack = state.form.querySelector<HTMLDivElement>(
|
|
300
|
-
".SearchBarContainer"
|
|
301
|
-
);
|
|
302
|
-
if (stack) stack.style.overflow = "visbile";
|
|
303
|
-
}, [hasMoreItems]);
|
|
304
|
-
|
|
305
297
|
// Layout
|
|
306
298
|
return (
|
|
307
299
|
<React.Fragment>
|
|
@@ -321,8 +313,12 @@ export function SearchBar(props: SearchBarProps) {
|
|
|
321
313
|
direction="row"
|
|
322
314
|
spacing={1}
|
|
323
315
|
width="100%"
|
|
324
|
-
overflow={hasMoreItems ? "hidden" : undefined}
|
|
325
316
|
sx={{
|
|
317
|
+
scrollbarWidth: 0,
|
|
318
|
+
"-ms-overflow-style": "none",
|
|
319
|
+
"&::-webkit-scrollbar": {
|
|
320
|
+
display: "none"
|
|
321
|
+
},
|
|
326
322
|
"& > :not(style)": {
|
|
327
323
|
flexBasis: "auto",
|
|
328
324
|
flexGrow: 0,
|