// Set up select searching
let selectId: any = document.getElementById('post-community');
- let selector = new Selectr(selectId, {});
- selector.on('selectr.select', option => {
- this.state.postForm.community_id = Number(option.value);
- });
+ if (selectId) {
+ let selector = new Selectr(selectId, { nativeDropdown: false });
+ selector.on('selectr.select', option => {
+ this.state.postForm.community_id = Number(option.value);
+ });
+ }
} else if (res.op == UserOperation.CreatePost) {
let data = res.data as PostResponse;
if (data.post.creator_id == UserService.Instance.user.id) {
</video>
)}
<div className="ml-4">
- <div className="post-title text-wrap-truncate">
+ <div className="post-title">
<h5 className="mb-0 d-inline">
<Link
className="text-body"
</Link>
</h5>
{post.url && (
- <small>
+ <small class="d-inline-block">
<a
className="ml-2 text-muted font-italic"
href={post.url}