What is the interaction between Green-Flame Blade and Absorb elements


Green-Flame Blade States:

…you must make a melee attack with a weapon against one creature…

…On a hit, the target suffers the attack’s normal effects, and green fire leaps from the target to a different creature of your choice that you can see within 5 feet of it. The second creature takes fire damage equal to your spellcasting ability modifier…

Absorb Elements States:

…the first time you hit with a melee attack on your next turn, the target takes an extra 1d6 damage of the triggering type…

Since Green-Flame Blade is a single attack that affects 2 targets at the same time. Does the Absorb Elements extra damage affect both the 1st and 2ndary targets as per RAW?