Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const App = component$(() => {
GitHub username:
<input
value={github.org}
onKeyup$={(ev) => (github.org = (ev.target as HTMLInputElement).value)}
onKeyUp$={(ev) => (github.org = (ev.target as HTMLInputElement).value)}
/>
</span>
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const App = component$(() => {
Try interacting with this component by changing{' '}
<input
value={state.name}
onKeyup$={(event) => {
onKeyUp$={(event) => {
const input = event.target as HTMLInputElement;
state.name = input.value;
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const Header = component$(
placeholder="What needs to be done?"
autoFocus
value={state.text}
onKeyup$={(event: any) => {
onKeyUp$={(event: any) => {
const inputValue = (event.target as HTMLInputElement).value;
state.text = inputValue;
if (event.key === 'Enter' && inputValue) {
Expand Down
2 changes: 1 addition & 1 deletion starters/apps/todo-old.test/src/components/item/item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const Item = component$(
ref={editInput}
value={props.item.title}
onBlur$={() => (state.editing = false)}
onKeyup$={(event: any) => {
onKeyUp$={(event: any) => {
const inputValue = (event.target as HTMLInputElement).value;
props.item.title = inputValue;
if (event.key === 'Enter') {
Expand Down
2 changes: 1 addition & 1 deletion starters/apps/todo/src/components/header/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const Header = component$(
placeholder="What needs to be done?"
autoFocus
value={state.text}
onKeyup$={(event: any) => {
onKeyUp$={(event: any) => {
const inputValue = (event.target as HTMLInputElement).value;
state.text = inputValue;
if (event.key === 'Enter' && inputValue) {
Expand Down
2 changes: 1 addition & 1 deletion starters/apps/todo/src/components/item/item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const Item = component$(
ref={editInput}
value={props.item.title}
onBlur$={() => (state.editing = false)}
onKeyup$={(event: any) => {
onKeyUp$={(event: any) => {
const inputValue = (event.target as HTMLInputElement).value;
props.item.title = inputValue;
if (event.key === 'Enter') {
Expand Down