Make things that should be bound, bound

This commit is contained in:
Justin Edmund 2023-07-03 19:22:45 -07:00
parent c35f954048
commit 2c4d9b1ab5
7 changed files with 18 additions and 0 deletions

View file

@ -50,6 +50,10 @@
&:hover {
background-color: var(--select-contained-bg-hover);
&.disabled {
background-color: var(--select-contained-bg);
}
}
}

View file

@ -181,6 +181,7 @@ const SelectWithInput = ({
value={`${currentItemSkill ? currentItemSkill.id : 0}`}
open={open}
trigger={{
bound: true,
className: 'grow',
}}
disabled={selectDisabled}
@ -200,6 +201,7 @@ const SelectWithInput = ({
})}
wrapperClassName="fullHeight"
type="number"
bound={true}
placeholder={rangeString()}
min={currentItemSkill?.minValue}
max={currentItemSkill?.maxValue}

View file

@ -189,6 +189,7 @@ const AwakeningSelectWithInput = ({
onOpenChange={changeOpen}
onClose={onClose}
trigger={{
bound: true,
className: 'grow',
}}
overlayVisible={false}
@ -204,6 +205,7 @@ const AwakeningSelectWithInput = ({
currentAwakening === undefined || currentAwakening.id === '0',
})}
wrapperClassName="fullHeight"
bound={true}
type="number"
placeholder={rangeString()}
min={1}

View file

@ -413,6 +413,7 @@ const AXSelect = (props: Props) => {
value={`${primaryAxModifier}`}
open={openAX1}
trigger={{
bound: true,
className: 'grow',
}}
onClose={() => onClose(1)}
@ -429,6 +430,7 @@ const AXSelect = (props: Props) => {
fieldsetClassName={classNames({
hidden: primaryAxModifier < 0,
})}
bound={true}
value={
props.currentSkills && props.currentSkills[0]
? props.currentSkills[0].strength
@ -449,6 +451,7 @@ const AXSelect = (props: Props) => {
value={`${secondaryAxModifier}`}
open={openAX2}
trigger={{
bound: true,
className: 'grow',
}}
onClose={() => onClose(2)}
@ -465,6 +468,7 @@ const AXSelect = (props: Props) => {
fieldsetClassName={classNames({
hidden: secondaryAxModifier < 0,
})}
bound={true}
value={
props.currentSkills && props.currentSkills[1]
? props.currentSkills[1].strength

View file

@ -135,6 +135,7 @@ const ExtendedMasterySelect = ({
onOpenChange={() => changeOpen('left')}
onClose={onClose}
trigger={{
bound: true,
className: classNames({
left: true,
modal: true,
@ -154,6 +155,7 @@ const ExtendedMasterySelect = ({
onClose={onClose}
overlayVisible={false}
trigger={{
bound: true,
className: classNames({
right: true,
modal: true,

View file

@ -154,6 +154,9 @@ const WeaponKeySelect = React.forwardRef<HTMLButtonElement, Props>(
onClose={onClose}
onOpenChange={onOpenChange}
onValueChange={handleChange}
trigger={{
bound: true,
}}
ref={ref}
overlayVisible={false}
>

View file

@ -3,6 +3,7 @@
flex-direction: column;
gap: $unit * 4;
padding: 0 $unit-4x;
margin-bottom: $unit-fourth;
section {
display: flex;