Skip to content

Commit

Permalink
fix: rename elements
Browse files Browse the repository at this point in the history
  • Loading branch information
KseniaTry committed Sep 16, 2024
1 parent 6257227 commit 6db1133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/view/edit-point-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ export default class EditPointView extends AbstractView {
#handleEditClick = null;
#handleFormSave = null;

constructor({ point, offers, destinations, onEditClick, onFormSave }) {
constructor({ point, offers, destinations, onEditClick, onFormSaveClick }) {
super();
this.#point = point;
this.#offers = offers;
this.#destinations = destinations;
this.#handleEditClick = onEditClick;
this.#handleFormSave = onFormSave;
this.#handleFormSave = onFormSaveClick;

this.element.querySelector('.event__rollup-btn').addEventListener('click', this.#editClickHandler);
this.element.querySelector('form').addEventListener('submit', this.#formSaveHandler);
Expand Down

0 comments on commit 6db1133

Please sign in to comment.