Skip to content

Commit

Permalink
Revert template update and add comment on iOS bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangYiJiang committed Jan 9, 2018
1 parent 0222523 commit 9691dc0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions www/src/js/views/timetable/ModulesSelect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ class ModulesSelect extends Component<Props, State> {
[styles.optionSelected]: highlightedIndex === index,
})}
>
{module.ModuleCode} {module.ModuleTitle}
{/* Using interpolated string instead of JSX because of iOS Safari
bug that drops the whitespace between the module code and title */}
{`${module.ModuleCode} ${module.ModuleTitle}`}
<div>
<span className="badge badge-info">Added</span>
</div>
Expand All @@ -150,7 +152,9 @@ class ModulesSelect extends Component<Props, State> {
[styles.optionSelected]: highlightedIndex === index,
})}
>
{module.ModuleCode} {module.ModuleTitle}
{/* Using interpolated string instead of JSX because of iOS Safari
bug that drops the whitespace between the module code and title */}
{`${module.ModuleCode} ${module.ModuleTitle}`}
</li>
),
)}
Expand Down

0 comments on commit 9691dc0

Please sign in to comment.