Skip to content

Commit

Permalink
Fix POS server validation triggers when POS is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
myieye committed Jan 28, 2025
1 parent b8744e3 commit 677a7cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
{ options: { id: string }[]; } |
{ getOptionId: (value: TOption) => string; }
) & (
{ value: TValue & TOption } |
{ value: Exclude<TValue, string> } |
{ value: Id; valueIsId: true; } | // we need valueIsId to know what type to return at run time
{ getValueById: (id: Id) => TValue }
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
{readonly}
id="definition"
wsType="analysis" />
<SingleOptionEditor on:change
bind:value={sense.partOfSpeechId}
valueIsId
<SingleOptionEditor on:change={() => sense.partOfSpeechId = sense.partOfSpeech?.id}
on:change
bind:value={sense.partOfSpeech}
options={$partsOfSpeech}
getOptionLabel={(pos) => pos.label}
{readonly}
Expand Down

0 comments on commit 677a7cd

Please sign in to comment.