Skip to content

Commit

Permalink
TodoMVC - React - add id to input (WebKit#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
flashdesignory authored Oct 2, 2024
1 parent 0dcab03 commit 400a5b8
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/todomvc/architecture-examples/preact/dist/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function TodoMain({ onChange, onToggle, onRemove, onSave, todos,
return (
<main class="main">
<div class="toggle-all-container">
<input class="toggle-all" type="checkbox" checked={activeTodoCount === 0} onChange={onChange} />
<input class="toggle-all" type="checkbox" id="toggle-all" checked={activeTodoCount === 0} onChange={onChange} />
<label class="toggle-all-label" htmlFor="toggle-all">
Toggle All Input
</label>
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class Main extends Component {
return (
<main className="main" data-testid="main">
<div className="toggle-all-container">
<input className="toggle-all" type="checkbox" data-testid="toggle-all" checked={completedCount === todos.length} onChange={toggleAll} />
<input className="toggle-all" type="checkbox" id="toggle-all" data-testid="toggle-all" checked={completedCount === todos.length} onChange={toggleAll} />
<label className="toggle-all-label" htmlFor="toggle-all">
Toggle All Input
</label>
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function Main({ todos, dispatch }) {
<main className="main" data-testid="main">
{visibleTodos.length > 0 ? (
<div className="toggle-all-container">
<input className="toggle-all" type="checkbox" data-testid="toggle-all" checked={visibleTodos.every((todo) => todo.completed)} onChange={toggleAll} />
<input className="toggle-all" type="checkbox" id="toggle-all" data-testid="toggle-all" checked={visibleTodos.every((todo) => todo.completed)} onChange={toggleAll} />
<label className="toggle-all-label" htmlFor="toggle-all">
Toggle All Input
</label>
Expand Down

0 comments on commit 400a5b8

Please sign in to comment.