Make things that should be bound, bound
This commit is contained in:
parent
c35f954048
commit
2c4d9b1ab5
7 changed files with 18 additions and 0 deletions
|
|
@ -50,6 +50,10 @@
|
|||
|
||||
&:hover {
|
||||
background-color: var(--select-contained-bg-hover);
|
||||
|
||||
&.disabled {
|
||||
background-color: var(--select-contained-bg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -154,6 +154,9 @@ const WeaponKeySelect = React.forwardRef<HTMLButtonElement, Props>(
|
|||
onClose={onClose}
|
||||
onOpenChange={onOpenChange}
|
||||
onValueChange={handleChange}
|
||||
trigger={{
|
||||
bound: true,
|
||||
}}
|
||||
ref={ref}
|
||||
overlayVisible={false}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
flex-direction: column;
|
||||
gap: $unit * 4;
|
||||
padding: 0 $unit-4x;
|
||||
margin-bottom: $unit-fourth;
|
||||
|
||||
section {
|
||||
display: flex;
|
||||
|
|
|
|||
Loading…
Reference in a new issue