Hyundai is recalling more than 31,000 examples of its Ioniq 6 electric sedan over an issue with the charging port door.