Fix pressing "enter" in time converter reloading the page

thrimbletrimmer-solid
ElementalAlchemist 2 weeks ago
parent 9d4bbfd32a
commit 1ad9f6f1a4

@ -56,7 +56,7 @@ const TimeConverter: Component<TimeConverterProps> = (props) => {
}; };
return ( return (
<form> <div>
<h1>Convert Times</h1> <h1>Convert Times</h1>
<input <input
type="text" type="text"
@ -129,7 +129,7 @@ const TimeConverter: Component<TimeConverterProps> = (props) => {
</label> </label>
</div> </div>
<div>Converted Time: {outputString()}</div> <div>Converted Time: {outputString()}</div>
</form> </div>
); );
}; };

Loading…
Cancel
Save