-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: post sort rows hook doesnt sort on swap
* fix: postSortRowsHook doesnt sort on swap * fix: action button wont spin if not passed a promise * Fix grid height in popout * fix: error on update of destroyed grid * feat: add aria label to action button, fix post sort rows exception on zombie grid * feat: add level to ActionButton * fix: centering spinner
- Loading branch information
1 parent
c60cb59
commit 0f9ca0e
Showing
7 changed files
with
166 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 45 additions & 45 deletions
90
src/components/gridForm/GridFormSubComponentTextInput.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
import { useState } from "react"; | ||
import { TextInputFormatted } from "../../lui/TextInputFormatted"; | ||
|
||
export interface GridFormSubComponentTextInput { | ||
setValue: (value: string) => void; | ||
keyDown: (key: string) => void; | ||
placeholder?: string; | ||
className?: string; | ||
} | ||
|
||
export const GridFormSubComponentTextInput = ({ | ||
keyDown, | ||
placeholder, | ||
setValue, | ||
className, | ||
}: GridFormSubComponentTextInput) => { | ||
const placeholderText = placeholder || "Other..."; | ||
const inputClass = className || ""; | ||
const [inputValue, setInputValue] = useState(""); | ||
return ( | ||
<> | ||
<TextInputFormatted | ||
className={inputClass} | ||
value={inputValue} | ||
onChange={(e) => { | ||
const value = e.target.value; | ||
setValue(value); | ||
setInputValue(value); | ||
}} | ||
inputProps={{ | ||
onKeyDown: (k: any) => keyDown(k.key), | ||
placeholder: placeholderText, | ||
onMouseEnter: (e) => { | ||
if (document.activeElement != e.currentTarget) { | ||
e.currentTarget.focus(); | ||
} | ||
}, | ||
style: { | ||
width: "100%", | ||
}, | ||
}} | ||
/> | ||
</> | ||
); | ||
}; | ||
import { useState } from "react"; | ||
import { TextInputFormatted } from "../../lui/TextInputFormatted"; | ||
|
||
export interface GridFormSubComponentTextInput { | ||
setValue: (value: string) => void; | ||
keyDown: (key: string) => void; | ||
placeholder?: string; | ||
className?: string; | ||
} | ||
|
||
export const GridFormSubComponentTextInput = ({ | ||
keyDown, | ||
placeholder, | ||
setValue, | ||
className, | ||
}: GridFormSubComponentTextInput) => { | ||
const placeholderText = placeholder || "Other..."; | ||
const inputClass = className || ""; | ||
const [inputValue, setInputValue] = useState(""); | ||
return ( | ||
<> | ||
<TextInputFormatted | ||
className={inputClass} | ||
value={inputValue} | ||
onChange={(e) => { | ||
const value = e.target.value; | ||
setValue(value); | ||
setInputValue(value); | ||
}} | ||
inputProps={{ | ||
onKeyDown: (k: any) => keyDown(k.key), | ||
placeholder: placeholderText, | ||
onMouseEnter: (e) => { | ||
if (document.activeElement != e.currentTarget) { | ||
e.currentTarget.focus(); | ||
} | ||
}, | ||
style: { | ||
width: "100%", | ||
}, | ||
}} | ||
/> | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.