fix: lint errors for textarea #48

Closed
norm wants to merge 1 commits from (deleted):fix/textarea into main
Owner
No description provided.
norm added 1 commit 2022-07-30 21:31:40 +00:00
ci/woodpecker/pr/lint-backend Pipeline was successful Details
ci/woodpecker/pr/build Pipeline was successful Details
ci/woodpecker/pr/lint-client Pipeline failed Details
ci/woodpecker/pr/test Pipeline failed Details
4c9051626e
fix: lint errors for textarea
norm reviewed 2022-07-30 22:02:54 +00:00
norm left a comment
Author
Owner

unsure of one thing

unsure of one thing
@ -99,3 +103,3 @@
}
invalid = inputEl.validity.badInput;
invalid.value = inputEl.value?.validity.badInput || true;
Author
Owner

Not sure if this should default to true or false

Not sure if this should default to true or false
Owner

Either way, using a logical or here is not the right solution. You probably meant to use ?? instead.

Since this ref will only be null until the element is loaded it should be better to default it to false.

Either way, using a logical or here is not the right solution. You probably meant to use `??` instead. Since this ref will only be `null` until the element is loaded it should be better to default it to `false`.
Johann150 reviewed 2022-07-31 09:33:25 +00:00
@ -73,1 +69,3 @@
const inputEl = $ref(null);
const focused = ref(false);
const changed = ref(false);
const invalid = ref(false);
Owner

The contribution guide says to use ref sugar (i.e. $ref), which means we can avoid writing .value everywhere. However I forgot that this means the variable may not be const because it will be assigned to. The proper solution should be to use let instead of const.

The contribution guide says to use ref sugar (i.e. `$ref`), which means we can avoid writing `.value` everywhere. However I forgot that this means the variable may not be `const` because it will be assigned to. The proper solution should be to use `let` instead of `const`.
Owner

Went ahead and fixed this stuff myself, since there were some things I wanted done a bit differently and didn't want to have you do all the details when I can just do it myself quicker. Hope that's okay for you.

Went ahead and fixed this stuff myself, since there were some things I wanted done a bit differently and didn't want to have you do all the details when I can just do it myself quicker. Hope that's okay for you.
Johann150 closed this pull request 2022-07-31 11:37:31 +00:00
Author
Owner

Yeah, that's fine. Thanks for the feedback!

Yeah, that's fine. Thanks for the feedback!
norm deleted branch fix/textarea 2022-07-31 12:52:09 +00:00
toast referenced this issue from a commit 2022-08-26 13:21:48 +00:00
Some checks failed
ci/woodpecker/pr/lint-backend Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/lint-client Pipeline failed
ci/woodpecker/pr/test Pipeline failed

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
feature
fix
upkeep
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: FoundKeyGang/FoundKey#48
No description provided.