diff --git a/packages/builder/src/common/Input.svelte b/packages/builder/src/common/Input.svelte
index e7c5e78841..50b07f41f0 100644
--- a/packages/builder/src/common/Input.svelte
+++ b/packages/builder/src/common/Input.svelte
@@ -22,6 +22,6 @@
appearance: none;
background: #fff;
border: 1px solid #ccc;
- height: 50px;
+ height: 35px;
}
diff --git a/packages/builder/src/common/Select.svelte b/packages/builder/src/common/Select.svelte
index be0ccafa7c..2b9b67bb85 100644
--- a/packages/builder/src/common/Select.svelte
+++ b/packages/builder/src/common/Select.svelte
@@ -23,11 +23,9 @@
select {
display: block;
- font-size: 14px;
font-family: sans-serif;
font-weight: 500;
color: #163057;
- line-height: 1.3;
padding: 1em 2.6em 0.9em 1.4em;
width: 100%;
max-width: 100%;
@@ -38,7 +36,7 @@
appearance: none;
background: #fff;
border: 1px solid #ccc;
- height: 50px;
+ height: 35px;
}
.arrow {
diff --git a/packages/builder/src/userInterface/EventsEditor/HandlerSelector.svelte b/packages/builder/src/userInterface/EventsEditor/HandlerSelector.svelte
index 6315736581..d34b7303ab 100644
--- a/packages/builder/src/userInterface/EventsEditor/HandlerSelector.svelte
+++ b/packages/builder/src/userInterface/EventsEditor/HandlerSelector.svelte
@@ -50,31 +50,8 @@
const handlerParams = {}
for (let param of params) {
handlerParams[param.name] = param.value
-
- if (param.value.startsWith("context")) {
- const [_, contextKey] = param.value.split(".");
-
- handlerParams[param.name] = {
- "##bbstate": contextKey,
- "##bbsource": "context",
- "##bbstatefallback": "balls to that",
- }
- console.log("Param starts with context", param.value);
- };
-
- if (param.value.startsWith("event")) {
- const [_, eventKey] = param.value.split(".");
- handlerParams[param.name] = {
- "##bbstate": eventKey,
- "##bbsource": "event",
- "##bbstatefallback": "balls to that",
- }
- };
-
}
- console.log(type, params, handlerParams);
-
const updatedHandler = {
[EVENT_TYPE_MEMBER_NAME]: type,
parameters: handlerParams,
@@ -96,9 +73,9 @@
}
const onParameterChanged = index => e => {
- const value = e.target.value
+ const value = e.target ? e.target.value : e
const newParams = [...parameters]
- newParams[index].value = e.target.value
+ newParams[index].value = value
handlerChanged(handlerType, newParams)
}
@@ -116,7 +93,7 @@
{#if parameters}
{#each parameters as parameter, idx}
-