@etsoo/materialui 1.1.59 → 1.1.60
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 +2 -2
- package/package.json +1 -1
- package/src/SearchBar.tsx +2 -2
package/lib/SearchBar.js
CHANGED
|
@@ -243,8 +243,8 @@ export function SearchBar(props) {
|
|
|
243
243
|
React.createElement(IconButton, { "aria-label": "delete", size: "medium", onClick: handleMore },
|
|
244
244
|
React.createElement(MoreHorizIcon, null)),
|
|
245
245
|
React.createElement(Button, { variant: "contained", size: "medium", ref: resetButtonRef, onClick: handleReset }, labels.reset))),
|
|
246
|
-
index != null && index < fields.length && (React.createElement(Drawer, { anchor: "right", sx: { minWidth: "250px" }, ModalProps: {
|
|
247
|
-
keepMounted:
|
|
246
|
+
index != null && index < fields.length && open && (React.createElement(Drawer, { anchor: "right", sx: { minWidth: "250px" }, ModalProps: {
|
|
247
|
+
keepMounted: false
|
|
248
248
|
}, open: open, onClose: () => updateOpen(false) },
|
|
249
249
|
React.createElement("form", { onChange: moreFormChange, ref: (form) => {
|
|
250
250
|
if (form)
|
package/package.json
CHANGED
package/src/SearchBar.tsx
CHANGED
|
@@ -339,12 +339,12 @@ export function SearchBar(props: SearchBarProps) {
|
|
|
339
339
|
</Button>
|
|
340
340
|
</Stack>
|
|
341
341
|
</form>
|
|
342
|
-
{index != null && index < fields.length && (
|
|
342
|
+
{index != null && index < fields.length && open && (
|
|
343
343
|
<Drawer
|
|
344
344
|
anchor="right"
|
|
345
345
|
sx={{ minWidth: "250px" }}
|
|
346
346
|
ModalProps={{
|
|
347
|
-
keepMounted:
|
|
347
|
+
keepMounted: false
|
|
348
348
|
}}
|
|
349
349
|
open={open}
|
|
350
350
|
onClose={() => updateOpen(false)}
|