Hi there. Could someone help me with my React Calculator? It isn’t working on Safari.
I’ve finished and submitted the project, passing all the tests. It works perfectly on Chrome, looks great on Safari and even works sometimes on Safari.
When I click a button, my click handler event.target will sometimes return the string with the final quotation mark on the next line. This is effecting the function.
My codepen is https://codepen.io/doulosiyxy/pen/eYMYNxG?editors=0110
EDIT: OK, so after some exploring, I found that Safari was adding space around the event.target value on clicks. So I added trim() to the value before running it through my abstract factory.