Edit attribute fixes (#1894)

Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
Denis Bykhov
2022-05-29 11:54:08 +07:00
committed by GitHub
parent b6c8994999
commit c2fd75e3ce
4 changed files with 70 additions and 43 deletions
@@ -128,7 +128,15 @@
<tbody>
{#each attributes as attr}
{@const attrType = attr.type._class === core.class.RefTo ? getRefClassTo(attr.type) : undefined}
<tr class="antiTable-body__row" on:contextmenu|preventDefault={(ev) => showMenu(ev, attr)}>
<tr
class="antiTable-body__row"
on:contextmenu={(ev) => {
if (attr.isCustom) {
ev.preventDefault()
showMenu(ev, attr)
}
}}
>
<td>
<div class="antiTable-cells__firstCell">
<Label label={attr.label} />