4 writes to _activeIndex
Aspire.Dashboard (4)
Components\Controls\ResourceTagEditor.razor.cs (4)
115
_activeIndex
= -1;
141
_activeIndex
= text is null || _options.Count == 0 ? -1 : 0;
149
_activeIndex
= (_activeIndex + 1) % _options.Count;
152
_activeIndex
= _activeIndex <= 0 ? _options.Count - 1 : _activeIndex - 1;
6 references to _activeIndex
Aspire.Dashboard (6)
Components\Controls\ResourceTagEditor.razor.cs (6)
149
_activeIndex = (
_activeIndex
+ 1) % _options.Count;
152
_activeIndex =
_activeIndex
<= 0 ? _options.Count - 1 :
_activeIndex
- 1;
155
if (
_activeIndex
>= 0 &&
_activeIndex
< _options.Count)
157
AddTag(_options[
_activeIndex
].Tag);