Skip to content

Commit

Permalink
Fix ruby ui outlets access
Browse files Browse the repository at this point in the history
  • Loading branch information
stephannv committed Nov 13, 2024
1 parent 5720e2c commit 91f46c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/ruby_ui/calendar/calendar_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class extends Controller {
this.updateCalendar();

// update the input value
this.ruby_uiCalendarInputOutlets.forEach((outlet) => {
this.rubyUiCalendarInputOutlets.forEach((outlet) => {
const formattedDate = this.formatDate(this.selectedDate());
outlet.setValue(formattedDate);
});
Expand Down
4 changes: 2 additions & 2 deletions lib/ruby_ui/combobox/combobox_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class extends Controller {
}

onSearchInput(event) {
this.ruby_uiComboboxContentOutlet.handleSearchInput(event.target.value);
this.rubyUiComboboxContentOutlet.handleSearchInput(event.target.value);
this.#findAndSetCurrentAndActiveDescendant();
}

Expand Down Expand Up @@ -155,7 +155,7 @@ export default class extends Controller {
const oldValue = this.inputTarget.value;
const newValue = item.dataset.value;

this.ruby_uiComboboxItemOutlets.forEach((item) =>
this.rubyUiComboboxItemOutlets.forEach((item) =>
item.handleItemSelected(newValue),
);

Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_ui/select/select_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default class extends Controller {
selectItem(event) {
event.preventDefault();

this.ruby_uiSelectItemOutlets.forEach((item) =>
this.rubyUiSelectItemOutlets.forEach((item) =>
item.handleSelectItem(event),
);

Expand Down

0 comments on commit 91f46c8

Please sign in to comment.