You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am trying to implement multiple "modes" based on /commands. Some commands will use the default search algorithm while others have their own. Hence, I have a shoudFilter reactive variable that decides which modes should disable the default search:
First of all, the shouldFilter behavior has no effect so I had to add a key:
{#keyshouldFilter}
the previous code
{/key}
However, the entire component is of course rebuilt and this selects the entire input text, which is annoying for the user as they were expecting to continue typing (e.g. /command something etc...).
I noticed an autofocus prop in the CommandInput.svelte which I tried to set (see the first code block) but it has no effect.
Am I setting this option wrong or is there something to fix? Thank you!
The text was updated successfully, but these errors were encountered:
Hi, I am trying to implement multiple "modes" based on /commands. Some commands will use the default search algorithm while others have their own. Hence, I have a
shoudFilter
reactive variable that decides which modes should disable the default search:First of all, the
shouldFilter
behavior has no effect so I had to add akey
:However, the entire component is of course rebuilt and this selects the entire input text, which is annoying for the user as they were expecting to continue typing (e.g.
/command something etc...
).I noticed an
autofocus
prop in theCommandInput.svelte
which I tried to set (see the first code block) but it has no effect.Am I setting this option wrong or is there something to fix? Thank you!
The text was updated successfully, but these errors were encountered: