We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cdac2b commit f3a5e60Copy full SHA for f3a5e60
firestore/scripts/FriendlyEats.View.js
@@ -110,12 +110,12 @@ FriendlyEats.prototype.viewSetup = function() {
110
const button = noRestaurantsEl.querySelector('#add_mock_data');
111
let addingMockData = false;
112
113
- button.addEventListener('click', () => {
+ button.addEventListener('click', event => {
114
if (addingMockData) return;
115
addingMockData = true;
116
117
- this.style.opacity = '0.4';
118
- this.innerText = 'Please wait...';
+ event.target.style.opacity = '0.4';
+ event.target.innerText = 'Please wait...';
119
120
this.addMockRestaurants().then(() => {
121
this.rerender();
0 commit comments