Better description of add + fix regression form validation + fix http server not using strokeWidth + add doc about hardcoded
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Eric NGUYEN 2022-08-16 17:45:52 +02:00
parent da7f5060e8
commit d29d1f5054
6 changed files with 24 additions and 20 deletions

View file

@ -3,8 +3,7 @@ import { IContainerModel, ContainerModel } from '../../Interfaces/IContainerMode
import { IHistoryState } from '../../Interfaces/IHistoryState';
import { findContainerById } from '../../utils/itertools';
import { getCurrentHistory } from './Editor';
import { constraintBodyInsideUnallocatedWidth, RecalculatePhysics } from './Behaviors/RigidBodyBehaviors';
import { INPUT_TYPES } from '../Properties/PropertiesInputTypes';
import { RecalculatePhysics } from './Behaviors/RigidBodyBehaviors';
import { ImposePosition } from './Behaviors/AnchorBehaviors';
import { restoreX } from '../SVG/Elements/Container';
@ -138,8 +137,9 @@ const submitHTMLInput = (
property: string,
form: HTMLFormElement
): void => {
if (INPUT_TYPES[property] !== 'number') {
if (input.type !== 'number') {
(container.properties as any)[property] = input.value;
return;
}
if (property === 'x') {
@ -188,7 +188,7 @@ const submitRadioButtons = (
return;
}
if (INPUT_TYPES[property] === 'number') {
if (radiobutton.type === 'radio') {
(container.properties as any)[property] = Number(radiobutton.value);
return;
}