Skip to content

Commit

Permalink
Fix: 新規登録設定画面の有効・無効判定条件ミス
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Mar 4, 2024
1 parent 941705b commit f3b99b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/packs/admin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ const onChangeRegistrationMode = (target: HTMLSelectElement) => {

const toggleEnabled = (input: HTMLInputElement, value: boolean) => {
input.disabled = !value;
if (enabled) {
if (value) {
let element: HTMLElement | null = input;
do {
element.classList.remove('disabled');
Expand Down

0 comments on commit f3b99b0

Please sign in to comment.