こんばんは。I am new to learning Japanese and this website. I usually try to learn things of my own initiative, by searching up specific things I don't understand and trying to make sense of them myself. However, since I began teaching myself this language I have begun to come across many roadblocks and such with slang, colloquial expressions and the like, so I've come to the conclusion that I really do need help with these specific problems.
With that, my problem at the moment is that I came across the phrase こんなことが、あっていいのか……？which I can tell means something along the lines of "These kinds of events... are they really okay?" but I can not for the life of me figure out what the あって means in this case. I've heard of あっての meaning something like "thanks to X, Y" and I know that the て form of ある would be あって, but it doesn't seem like either of these things are related to this situation. Any help is greatly appreciated! ありがとございます！