Broken new/edit feature flag form

Summary

New and edit forms for feature flags behave strangely in some cases

  1. When you click on checkbox while creating new environment scope, new row being created, but environment scope being moved to new row, while it should stay

first

  1. When you delete first environment scopes, clicking on activity checkboxes of the rest leads to changing previous ones

second

Steps to reproduce

See gifs above

Output of checks

I tried this locally, but it shouldn't be different on gitlab.com

Edited by Jason Yavorsky