sliftutils 0.45.0 → 0.46.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sliftutils",
3
- "version": "0.45.0",
3
+ "version": "0.46.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -15,7 +15,7 @@ const activeModals = observable({} as { [key: string]: ModalData }, undefined, {
15
15
  class ModalRoot extends preact.Component {
16
16
  render() {
17
17
  const modals: Array<[string, ModalData]> = Object.entries(activeModals);
18
- return <div>
18
+ return <div style={{ position: "relative", zIndex: 1 }}>
19
19
  {modals.map(([id, data]) => (
20
20
  <div key={id}>
21
21
  {data.contents}
package/web/Page.tsx CHANGED
@@ -12,7 +12,7 @@ export class Page extends preact.Component {
12
12
  onKeyDown = (e: KeyboardEvent) => {
13
13
  // Ignore if it is for an input, text area, etc
14
14
  let ignore = (
15
- e.target instanceof HTMLInputElement ||
15
+ e.target instanceof HTMLInputElement && e.target.type !== "file" ||
16
16
  e.target instanceof HTMLTextAreaElement ||
17
17
  e.target instanceof HTMLSelectElement
18
18
  );