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 {
|
&:hover {
|
||||||
background-color: var(--select-contained-bg-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}`}
|
value={`${currentItemSkill ? currentItemSkill.id : 0}`}
|
||||||
open={open}
|
open={open}
|
||||||
trigger={{
|
trigger={{
|
||||||
|
bound: true,
|
||||||
className: 'grow',
|
className: 'grow',
|
||||||
}}
|
}}
|
||||||
disabled={selectDisabled}
|
disabled={selectDisabled}
|
||||||
|
|
@ -200,6 +201,7 @@ const SelectWithInput = ({
|
||||||
})}
|
})}
|
||||||
wrapperClassName="fullHeight"
|
wrapperClassName="fullHeight"
|
||||||
type="number"
|
type="number"
|
||||||
|
bound={true}
|
||||||
placeholder={rangeString()}
|
placeholder={rangeString()}
|
||||||
min={currentItemSkill?.minValue}
|
min={currentItemSkill?.minValue}
|
||||||
max={currentItemSkill?.maxValue}
|
max={currentItemSkill?.maxValue}
|
||||||
|
|
|
||||||
|
|
@ -189,6 +189,7 @@ const AwakeningSelectWithInput = ({
|
||||||
onOpenChange={changeOpen}
|
onOpenChange={changeOpen}
|
||||||
onClose={onClose}
|
onClose={onClose}
|
||||||
trigger={{
|
trigger={{
|
||||||
|
bound: true,
|
||||||
className: 'grow',
|
className: 'grow',
|
||||||
}}
|
}}
|
||||||
overlayVisible={false}
|
overlayVisible={false}
|
||||||
|
|
@ -204,6 +205,7 @@ const AwakeningSelectWithInput = ({
|
||||||
currentAwakening === undefined || currentAwakening.id === '0',
|
currentAwakening === undefined || currentAwakening.id === '0',
|
||||||
})}
|
})}
|
||||||
wrapperClassName="fullHeight"
|
wrapperClassName="fullHeight"
|
||||||
|
bound={true}
|
||||||
type="number"
|
type="number"
|
||||||
placeholder={rangeString()}
|
placeholder={rangeString()}
|
||||||
min={1}
|
min={1}
|
||||||
|
|
|
||||||
|
|
@ -413,6 +413,7 @@ const AXSelect = (props: Props) => {
|
||||||
value={`${primaryAxModifier}`}
|
value={`${primaryAxModifier}`}
|
||||||
open={openAX1}
|
open={openAX1}
|
||||||
trigger={{
|
trigger={{
|
||||||
|
bound: true,
|
||||||
className: 'grow',
|
className: 'grow',
|
||||||
}}
|
}}
|
||||||
onClose={() => onClose(1)}
|
onClose={() => onClose(1)}
|
||||||
|
|
@ -429,6 +430,7 @@ const AXSelect = (props: Props) => {
|
||||||
fieldsetClassName={classNames({
|
fieldsetClassName={classNames({
|
||||||
hidden: primaryAxModifier < 0,
|
hidden: primaryAxModifier < 0,
|
||||||
})}
|
})}
|
||||||
|
bound={true}
|
||||||
value={
|
value={
|
||||||
props.currentSkills && props.currentSkills[0]
|
props.currentSkills && props.currentSkills[0]
|
||||||
? props.currentSkills[0].strength
|
? props.currentSkills[0].strength
|
||||||
|
|
@ -449,6 +451,7 @@ const AXSelect = (props: Props) => {
|
||||||
value={`${secondaryAxModifier}`}
|
value={`${secondaryAxModifier}`}
|
||||||
open={openAX2}
|
open={openAX2}
|
||||||
trigger={{
|
trigger={{
|
||||||
|
bound: true,
|
||||||
className: 'grow',
|
className: 'grow',
|
||||||
}}
|
}}
|
||||||
onClose={() => onClose(2)}
|
onClose={() => onClose(2)}
|
||||||
|
|
@ -465,6 +468,7 @@ const AXSelect = (props: Props) => {
|
||||||
fieldsetClassName={classNames({
|
fieldsetClassName={classNames({
|
||||||
hidden: secondaryAxModifier < 0,
|
hidden: secondaryAxModifier < 0,
|
||||||
})}
|
})}
|
||||||
|
bound={true}
|
||||||
value={
|
value={
|
||||||
props.currentSkills && props.currentSkills[1]
|
props.currentSkills && props.currentSkills[1]
|
||||||
? props.currentSkills[1].strength
|
? props.currentSkills[1].strength
|
||||||
|
|
|
||||||
|
|
@ -135,6 +135,7 @@ const ExtendedMasterySelect = ({
|
||||||
onOpenChange={() => changeOpen('left')}
|
onOpenChange={() => changeOpen('left')}
|
||||||
onClose={onClose}
|
onClose={onClose}
|
||||||
trigger={{
|
trigger={{
|
||||||
|
bound: true,
|
||||||
className: classNames({
|
className: classNames({
|
||||||
left: true,
|
left: true,
|
||||||
modal: true,
|
modal: true,
|
||||||
|
|
@ -154,6 +155,7 @@ const ExtendedMasterySelect = ({
|
||||||
onClose={onClose}
|
onClose={onClose}
|
||||||
overlayVisible={false}
|
overlayVisible={false}
|
||||||
trigger={{
|
trigger={{
|
||||||
|
bound: true,
|
||||||
className: classNames({
|
className: classNames({
|
||||||
right: true,
|
right: true,
|
||||||
modal: true,
|
modal: true,
|
||||||
|
|
|
||||||
|
|
@ -154,6 +154,9 @@ const WeaponKeySelect = React.forwardRef<HTMLButtonElement, Props>(
|
||||||
onClose={onClose}
|
onClose={onClose}
|
||||||
onOpenChange={onOpenChange}
|
onOpenChange={onOpenChange}
|
||||||
onValueChange={handleChange}
|
onValueChange={handleChange}
|
||||||
|
trigger={{
|
||||||
|
bound: true,
|
||||||
|
}}
|
||||||
ref={ref}
|
ref={ref}
|
||||||
overlayVisible={false}
|
overlayVisible={false}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: $unit * 4;
|
gap: $unit * 4;
|
||||||
padding: 0 $unit-4x;
|
padding: 0 $unit-4x;
|
||||||
|
margin-bottom: $unit-fourth;
|
||||||
|
|
||||||
section {
|
section {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue