@etsoo/materialui 1.1.76 → 1.1.78
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 +1 -8
- package/package.json +1 -1
- package/src/SearchBar.tsx +2 -9
package/lib/SearchBar.js
CHANGED
|
@@ -218,20 +218,13 @@ 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%", overflow:
|
|
227
|
+
React.createElement(Stack, { ref: dimensions[0][0], className: "SearchBarContainer", justifyContent: "center", alignItems: "center", direction: "row", spacing: 1, width: "100%", overflow: "hidden", paddingTop: "6px", sx: {
|
|
235
228
|
"& > :not(style)": {
|
|
236
229
|
flexBasis: "auto",
|
|
237
230
|
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,7 +313,8 @@ export function SearchBar(props: SearchBarProps) {
|
|
|
321
313
|
direction="row"
|
|
322
314
|
spacing={1}
|
|
323
315
|
width="100%"
|
|
324
|
-
overflow=
|
|
316
|
+
overflow="hidden"
|
|
317
|
+
paddingTop="6px"
|
|
325
318
|
sx={{
|
|
326
319
|
"& > :not(style)": {
|
|
327
320
|
flexBasis: "auto",
|